Map A Grid
This project uses an Arduino to control a servo and ultrasound sensor to
collect data that can be used to locate objects in a grid of cells.
Essentially it is a radar (sonar) sweep of the grid cells to locate objects.
The Arduino receives commands from a Perl program and returns raw data for
processing and display.
I recently acquired a Grove beginner kit For the Arduino. I wanted to "play" with it and Python.
The kit includes an Arduino compatible Board and 10 sensors. (I collected some useful links here.)
The following are some of the test code. (You will need to rename them.)
x001_BAT (example BAT file for running on Windows)
x001_INO
x002_INO
x002_PY
x003_INO
x003_PY
x010_acceleration_INO (from kit documentation)
x011_lcd_1_INO (from kit documentation)
x012_lcd_2_INO (expanded from kit example)
arduino_serial_test_001_INO
arduino_serial_test_001_PY
arduino_pyfirmata_001_PY
test_encode_decode_PY
Note: I tested these on Windows and Linux.