- Get link
- X
- Other Apps
Posts
Showing posts from May, 2012
Mouse Controlling Arduino LEDs
- Get link
- X
- Other Apps
Use a mouse to control LEDs attached to an Arduino. This project uses the processing language to transmit the mouse coordinates to the Arduino, which then uses this information to turn on some LEDs. Please see the video below to see it in action. Components Required for this project: Arduino UNO Breadboard 9 LEDs 9 x 330 ohm resistors Wires to connect the circuit USB connection cable : to connect the computer to the Arduino A computer : to run the processing sketch, and to compile / upload the Arduino sketch Processing Program installed on computer Arduino Program installed on the computer Arduino Sketch This was made using Fritzing . Arduino Code You can download the Arduino IDE from this site . 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 /* This program was created by ScottC on 9/5/2012 to receive serial signals from a computer to turn on/off 1-9 LEDs */ void setup() ...
Reading from a Text File and Sending to Arduino
- Get link
- X
- Other Apps
The following tutorial will demonstrate how to Read values from a Text file (.txt, .csv) to blink 1 of 9 LEDs attached to an Arduino. It uses the combination of an Arduino and Processing program to process the file. The Processing program will read the text file in real time, only sending new information to the Arduino. Components Required Arduino UNO Breadboard 9 LEDs 9 x 330 ohm resistors Wires to connect the circuit USB connection cable : to connect the computer to the Arduino A computer : to run the processing sketch, and to compile / upload the Arduino sketch Processing Program installed on computer Arduino Program installed on the computer A comma separated text file (*.txt). Arduino Layout The Text File Open Notepad or equivalent text file editor, and paste the following data into it. 1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2,1 Save the file on your hard drive. In my case, I have chosen to save the file at this location. D:/mySensorData.txt It should look like the follow...