Difference: ArduinoSensor (3 vs. 4)

Revision 42016-11-02 - TomErikHaugen

Line: 1 to 1

Arduino Sensor Circuit

Line: 38 to 37


This code is old and has been improved

The improved code is run through the Control.py script. It has combined the data coming from the Arduino and the power supplies and has completely replaced this code. Refer to the documentation for that instead.

 The Arduino communicates through a serial port (ttyACM0)to the computer. It is very simple to read a serial port with a python script, however there are 2 possible problems to run into.
  • The serial port itself does not exist until the Arduino is plugged into the computer, so running the python script will not work unless the Arduino is connected.
  • The serial port has automatic protections on it that make it unreadable. To remedy this enter sudo chmod 666 /dev/ttyACM0 to change the permissions on the port as the superuser (this will require the password)
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback