Receiving data from Arduino in serial connection
In this project, it is aimed to save the information from the sensors to the txt file.
Used items on arduino
- 1K Ohm resistors X2
- Tmp36 X1
- Photoresistor X1
- Button X1
After following the diagram, download the sketch_mar23a.ino and upload it to the arduino.
Download Arduno_Data_Read file and open it. Download the pyserial library (pip install pyserial)
When you execute the code, you will get these outputs:
Terminal:
Data.txt:
The Source I Used
- https://www.instructables.com/Sending-Data-From-Arduino-to-Python-Via-USB/
- https://www.youtube.com/watch?v=Tnsm_JteSSE
- https://www.tutorialspoint.com/arduino/arduino_temperature_sensor.htm
- https://arduinogetstarted.com/tutorials/arduino-light-sensor
- https://www.arduino.cc/en/Tutorial/BuiltInExamples/Button