Arduino The Ultimate Beginners Guide To Arduino Learn How To Get Started With Arduino Programming Projects and More PDF
Arduino The Ultimate Beginners Guide To Arduino Learn How To Get Started With Arduino Programming Projects and More PDF
Here is how the project should look. Follow the image to create your own project. Listed
below will be the parts needed and the sketch you will need to code in order to get the
project to work.
Parts Needed – In order to create this project you will need the following components.
2x10k Ohms Resistor
1x 3.3M Ohms Resistor
4x jumper wires
1x Arduino (I’m using Uno but any other will work as long as it can operate at
16Mhz)
Breadboard for simplicity
Code – Here is the code that you will need to get it to work. Feel free to play around with
the code and make the desired modifications to the project you wish.
#define FASTADC 1
// defines for setting and clearing register bits
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
#ifndef sbi
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#endif
int data = 512;
int storage[512];
long batchStarted;
long batchEnded;
int reading;
int count;
int maximum;
int minimum;
bool toSend;
void setup() {
#if FASTADC
// set prescale to 16
sbi(ADCSRA,ADPS2) ;
cbi(ADCSRA,ADPS1) ;
cbi(ADCSRA,ADPS0) ;
#endif
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(A4,INPUT);
Serial.println(micros());
batchStarted=0;
batchEnded=0;
reading=0;
count=0;
maximum=0;
minimum=1023;
toSend=false;
}
void loop() {
// put your main code here, to run repeatedly:
reading = (analogRead(A4));
storage[count]=reading;
if ((!toSend)&&(count!=0)&&((reading>storage[count-1]+10)||(reading<storage[count-
1]-10))){
toSend=true;
}
count=count+1;
if ((count == 512) && (toSend))
{
count=0;
batchEnded = millis();
sendData();
batchStarted = millis();
}
else if (count==512){
count=0;
batchEnded = millis();
//sendData();
batchStarted = millis();
}
}
void sendData()
{
Serial.print(“>>>”);
Serial.println(batchStarted);
for (int i=0;i<data;i++){
Serial.println(storage[i]);
}
Serial.print(“<<<”);
Serial.println(batchEnded);
Serial.println(“END”);
toSend=false;
}
Idea #2 – A Bubble Machine
One cool thing about this project is that it can be a great learning experience for kids as
well as adults. If you build two of them you can have bubble fights.
What you will need for this project are as followed.
1. Arduino Duemilanove $30.00
1 motor shield $19.50
2 micro servos- I used Hextronik HXT 500 $3.50 each
1 DC toy motor- something between 3v and 12v - easy to find, motor shield docs will help
you decide if what you may already have will work.
1 bottle of bubble mix.
These things I used, but are not critical. This is where your own creativity will need to
come to play.
1 roll of perforated metal tape- any hardware store
nuts and bolts of various sizes diamond plate- local scrap yard
aluminum channel- local scrap yard
1 threaded rod hanger/ plate
earthquake putty or museum wax
5 minute epoxy
1/4” acrylic sheet- about 6” x 6” worth
acrylic adhesive
Idea #3 = Mobile Dance Floor
This is a great idea if you are a DJ or someone who loves to dance. You can make the
dance floor as big or as small as you want and if you are really creative you can put in a
stripper pole or even come up with different ideas for using a floor that lights up.
I found the design for this project on the following site - http://www.raverover.com/ Go
there to learn how to put the project together as well as get some other innovative ideas for
making the most awesome party house you can.
Idea #4 – Secret Knock Door Knocker
This is a pretty cool idea and with a little modifications you can have some real fun with
it. If you would like to get the information on this project visit this web site -
http://www.instructables.com/id/Secret-Knock-Detecting-Door-Lock/
When developing the door knocker you can make some modifications to the body. You
can try placing the device in a mask and hang it on the door so that when people approach
the head will open and close its mouth. You can get a motion sensor that when tripped
will play an MP3 file or perhaps trigger the door itself to open.
When doing this project there is a lot that you can do. It is all a matter of being creative.
Idea #5 – Finger print scanner
When you use the Arduino and some other basic components you can create a finger print
scanner. You can attach this scanner to another piece of hardware that when recognizes
your print will turn on or off, sound an alarm or with the wireless components send a
signal to a fleet of drones that you can use to attack your brother or sister.
When you do this type of project you can have something that increases security in your
home can unlock a box or drop water balloons form overhead fighters. Ideas are
limitless.
Idea #6 – Spray gun for the cats
One cool thing that you can do with the Arduino is attach motion and light sensors to it.
When you do this and the lights are broken they can run a servo motor that will squeeze
the trigger of a spray bottle sending water onto that pesky cat when he or she jumps on the
couch. You can take this basic idea and use it in a wide variety of operations.
Idea #7 – Build Robots
Robots are a great thing to build. You can create your own Terminator to go after your
sister or the cat. With robots you can program them to do a wide variety of tasks. There
are a group of guys that programmed their device to play poker. What they did was create
a robotic arm that had a suction cup at the end of the hand. They also programmed it to
follow specific movements as well as react to a wide variety of commands. The robot
would then use this information to deal out the cards as well know when to hit, stay and
fold.
Idea #8 – Create your own futuristic control panel
If you are a lover of science fiction and shows like Star Trek like I am then you will really
enjoy this project. http://imgur.com/a/DyQZL#TPXOq0n
In this project you will create a futuristic control panel that you can use to control your
computer as well as other devices. When I saw this project I thought it was pretty cool
and I plan on building something like this myself. With this project you will be able to
control aspects of your computer, models made with other makers sets and much more.
I highly suggest that you check out this project. It will make your home computer the
most awesome computer in the neighborhood.