Posts

Showing posts with the label Mouse

Send HEX values to Arduino

Image
FIVE MINUTE TUTORIAL Project Description: Sending Hex values to an Arduino UNO This simple tutorial will show you how to send Hexadecimal values from a computer to an Arduino Uno. The "Processing" programming language will be used to send the HEX values from the computer when a mouse button is pressed. The Arduino will use these values to adjust the brightness of an LED.   Learning Objectives To Send Hexadecimal (Hex) values from a computer to the Arduino Trigger an action based on the press of a mouse button Learn to create a simple Computer to Arduino interface Use Arduino's PWM capabilities to adjust brightness of an LED Learn to use Arduino's analogWrite() function Create a simple LED circuit...

Mouse Controlling Arduino LEDs

Image
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() ...