Category : arduino

I’m trying to send the values ​​obtained from opencv to the Arduino that is running the GRBL-Mega-5X firmware. My python code is as follows: import cv2 import serial,time from imutils.video import VideoStream face_cascade= cv2.CascadeClassifier(‘haarcascade_frontalface_default.xml’) rtsp_url = "rtsp://usuario:[email protected]:porta/cam/realmonitor?channel=1&subtype=0" cap = VideoStream(rtsp_url).start() ArduinoSerial=serial.Serial(‘com5’,115200,timeout=0.1) time.sleep(1) while 1: frame= cap.read() #frame=cv2.flip(frame,1) #inverte a imagem gray = cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY) faces= face_cascade.detectMultiScale(gray,1.1,6) ..

Read more

I am working on a robot that should rotate 45 degrees,but i can’t actually find the formula between the time and rpm. I use 4 dc motors "https://www.amazon.com/Antrader-Motor-Shaft-Arduino-Smart/dp/B07DDC3ZBK/ref=sr_1_10?crid=2YG6G3XPTKKA6&keywords=dc%2Bmotors&qid=1642358138&sprefix=dc%2Bmotors%2Caps%2C173&sr=8-10&th=1"(you can find here the voltage,rpm and more values) and a motor driver L298N.I have a gyro but i don’t have any idea how to use it. Can ..

Read more

Code on arduino Arduino MLX90614 Infrared Temperature Sensor I dont know how to convert it to my python code. Please Help me #include <Wire.h> #include <Adafruit_MLX90614.h> Adafruit_MLX90614 mlx = Adafruit_MLX90614(); void setup() { Serial.begin(9600); Serial.println("Adafruit MLX90614 test"); mlx.begin(); } void loop() { Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC()); Serial.print("*CtObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C"); Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempF()); ..

Read more

I am sending sensor data over mqtt from Arduino to Flask in Python. I am also sending the serial connection object like: ser = serial.Serial("COM5", 9600) client = mqtt.Client("Temperature_Inside") publish_serial_data = str(ser) client.publish("SERIAL", publish_serial_data) print("Just published ", publish_serial_data, " to Topic SERIAL") I am getting the serial data in the client, but in the form ..

Read more