|
571
|
Using Arduino / LEDs and Multiplexing / Re: need MULTIPLEXING 7 segment help
|
on: June 27, 2012, 08:51:02 pm
|
|
You have no delays in the display of the letters.
Let's say that you display AA and then BB immediately afterwards. What you will see is BB because the change is so fast your eye does not perceive that AA was ever there. Also remember that at the end of loop() you can imagine that it immediately starts at the top again, so in the example you have all you will ever see is ECE (because you have a delay there) and CCC (if it existed) would immediately be replaced by ECE (or Clear in your case).
|
|
|
|
|
573
|
Using Arduino / Programming Questions / Re: Ping controlling a LED - pls help!
|
on: June 27, 2012, 05:36:16 pm
|
|
LED = LOW just makes the variable LED the number 0. You need to use the digitalWrite() function if you are trying to make the ouptut of pin LED LOW.
Try defining the LED variable as a const (which it should be) and your code will not compile.
I know it is not preferred style for most of the Arduino code I see, but using #define for LED will immediately highlight the problems.
|
|
|
|
|
575
|
Using Arduino / General Electronics / Re: Servo and Motor Shield Confusion.
|
on: June 25, 2012, 08:18:57 pm
|
|
Generally standard servos just rotate 180 degrees. I have seen posts where people have modded the servos to do complete turns, so Google could be your friend here.
If you want to run wheels and you already have a motor shield, then why not just use a standard DC motor or a stepper motor? These can be run from the Arduino thru the motor shield. Examples in the Playground.
|
|
|
|
|
578
|
Using Arduino / General Electronics / Re: Servo and Motor Shield Confusion.
|
on: June 25, 2012, 07:23:41 pm
|
|
Looks like the bit you highlighted was the plug? No idea where you get one, but I would just poke some wire into the servo socket and use that if you are building a temporary circuit to test your ideas.
The white thing is a breadboard and you can get those in any elecronics store, ebay, etc.
Duemilanove (2009 in Italian) is for this purpose no different to the Uno. I think it is just a 'older' model with a different CPU.
|
|
|
|
|
580
|
Using Arduino / LEDs and Multiplexing / Re: Direct Connect 8x8 matrix
|
on: June 25, 2012, 04:41:20 pm
|
|
From your brief description my guess is that your pinout for the LED matrix are not the same as the example you are following. You should get hold of the data sheet for the matrix and check that logically you have connected to the rows and columns as you expect. Once you have verified that the hardware is connected properly, then the software is the next step.
|
|
|
|
|
582
|
Using Arduino / Programming Questions / Re: Filtering out erroneous data
|
on: June 24, 2012, 09:57:37 pm
|
|
The Arduino is not accurate as a clock over a long time. However, as you are in control of the lights, maybe when the lights come on you can just use the Arduino time to work out the current time. The sort of logic I am thinking of would be that is the lights are not energised, use the external clock (I2C) and if the lights are on, use the last reading and add on the time elapsed from the Arduino. When the lights are turned off the Arduino can resync to the external clock.
If it is RF interference, then maybe position the electronics further away from the lights? Or change the lights to something else :-).
|
|
|
|
|
583
|
Using Arduino / Programming Questions / Re: Filtering out erroneous data
|
on: June 24, 2012, 09:17:49 pm
|
|
It depends on what you mean by 'garbage' values.
Time is a very linear thing, so one time value will aways be bigger than the previous time value. I would have thought that in the software you should be able to ignore values that differed from the previous one by more than a certain amount as being 'in error', and anything less than previous reading as being definitely wrong.
IMO
|
|
|
|
|
585
|
Using Arduino / Sensors / Re: stuck on what type of sensor to use here.
|
on: June 23, 2012, 06:36:09 pm
|
|
Shaft encoders don't need to be directly on the shaft that is being measured. You can drive them through gears or a belt (toothed preferably to minimise slippage) from the main shaft onto a secondary shaft in a more conviennt location.
If you have less than 360 dgeree rotation then maybe a pot will be sufficient - measure the resistance/voltage on the pot to infer the angle - but accuracy may be an issue if you are trying to accuratley position the robot arm.
|
|
|
|
|