This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Joystick and the serial monitor. | |
* | |
* This sketch outputs data from the joystick at 9600 baud to the 'Serial Monitor' (the serial | |
* monitor needs to be opened to view this data). | |
* | |
* CIRCUIT: | |
* - Joystick VCC to Arduino 5V, joystick GND to Arduino GND | |
* - Joystick vertical axis to A0, horizontal to A1 | |
* - Joystick pushbutton connected to digital pin 2 using a pull-up resistor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* OBSTACLE AVOIDER ROBOT | |
* | |
* A simple Arduino based obstacle avoider robot that uses two infrared distance sensors to | |
* "look for" obstacle and change its behavior accordingly. If the robot detects an obstacle to its | |
* left, it turns clockwise; if the obstacle is on the right, it turns anti-clockwise; and moves | |
* forward if no obstacle is found. | |
* | |
* Abhik Pal | |
* (abhik@ardubotics.com) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Music Visualizer ver2 | |
* This sketch extracts values from the input audio stream | |
* which happens to give the same values as our output | |
* stream as "Stereo Mix" has been set as the default device. | |
* The values are used to draw waveforms representing the | |
* average, left and right channels and send the values to an | |
* Arduino which changes the brightness of a LED. | |
* This is an upgrade to the previous Music Visualizer Project | |
* at : http://theblubot.blogspot.com/2014/01/simple-music-visualizer.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* A Simple Monochromatic sound Visualizer | |
* | |
* This sketch plays a sound and sends the average | |
* values in the audio buffer as integer values to the arduino | |
* where an LED changes its brightness based on the values sent. | |
* | |
* This project is an extension to the "Glowing Dodecahedron" | |
* project and adds a bit of functionality to the dodecahedron. | |
* The "Glowing Dodecahedron" project is available with instructions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Interfacing Arduino from Processing | |
* Example 1 Arduino Sketch | |
* | |
* The Arduino listens for any data on the serial buffer. | |
* If any data is received it is stored in a char-variable. | |
* If the received value is 'H' then the led is turned on and | |
* if the received value is 'L' then the LED is turned off. | |
* No action is taken for other values. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The Clock Problem | |
* To find the time when the hands of a clock make a specified angle. | |
* | |
* based on equation given by Khan Academy(www.khanacademy.org) user Just Keith | |
* M = (2/11) * (30*H +- 90) | |
* | |
* Code by Abhik Pal | |
* 17th September 2013 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Arduino Code for | |
* Simple Talking Intruder Alert System | |
* | |
* Abhik Pal | |
*/ | |
#define pirPin 7 // PIR Sensor connected to pin 7 | |
#define ledPin 13 // LED connected to pin 13 |
NewerOlder