Show Posts
|
|
Pages: 1 [2] 3 4 ... 7
|
|
17
|
Forum 2005-2010 (read only) / Troubleshooting / Re: Boarduino programming
|
on: March 20, 2010, 10:42:24 pm
|
|
I recently built my own serial to USB cable that does not have DTR line.
Here's the timing that works for me: 1. Press and hold down the reset button 2. Press control-U in the IDE to start compile and upload 3. Continue holding the reset button until you see the message at the bottom of the IDE showing "Binary sketch size..." 4. When you see that message, release the reset button.
This works great for me. Good luck!
|
|
|
|
|
19
|
Forum 2005-2010 (read only) / Troubleshooting / Re: Probably stupid question on pins
|
on: March 01, 2010, 12:16:09 am
|
analogWrite(2,255) will light up DIGITAL pin 2 at full brightness (continous on). analogWrite is confusing because it ALWAYS writes to a DIGITAL pin! http://arduino.cc/en/Reference/AnalogWriteanalogRead(2) works as expected, reading analog pin 2 , while digitalRead(2) reads digital pin 2 (provided you call pinMode(2,INPUT) first.) [edit]To turn on the LED on analog pin 2, as Osgeld mentioned, you need to refer to it as digital pin 16: pinMode(16,OUTPUT); digitalWrite(16,HIGH);[/edit]
|
|
|
|
|
25
|
Forum 2005-2010 (read only) / Interfacing / Re: Need help picking H-Bridge
|
on: November 17, 2010, 09:21:36 am
|
Grumpy_Mike, the power supply is four 2500mAh rechargable AA batteries. There is no regulator, the SN754110 stayed cool. The batteries do not get hot. Arduino drives the +5 and control pins of the bridge and nothing warm there either. Zoomkat, you maybe onto something... I measured the voltage across the motor, last night and it was only 2.9V!  I'll try increasing the supply voltage tonight. Thanks for the replies guys!
|
|
|
|
|
26
|
Forum 2005-2010 (read only) / Interfacing / Need help picking H-Bridge
|
on: November 16, 2010, 11:39:50 pm
|
I'm trying to have bi-directional control over two electric screw driver motors. They're 4.8V 1A each. I was able to run it directly or turn it on/off using a TIP120 Darlington Transistor. However, controlling the motor using the SN754410 bridge barely moved the motor.  I know there are many Motor Driver boards out there, but they are all more than $20. The one for $20 is based on the same the L298 (granted it has serial control, but I'm perfectly happy to control the motors using a few digital Arduino ports.) The spec for L298 says it can drive up to 4A. Would purchasing the $3 L298N Dual Full-Bridge and the $3 matching breakout board solve my problem? Or do I need something beefier? Thank you.
|
|
|
|
|
28
|
Forum 2005-2010 (read only) / Interfacing / Re: Arduino +Sparkfuns 4-digit 7-segment 16pin display
|
on: October 10, 2010, 01:20:31 pm
|
|
Ah... If you take a look at RefreshDisplay(), you will find two lines similar to this: digitalWrite(digit0 + digitPosition, LOW); // Turn off previous digit
Each digit is turned on one at a time, so the above line turn off the previously on digit, adjust the segments for the next digit, and then turn on that next digit.
You should be able to adjust the calculation of the first parameter instead of re-wiring the circuit. Maybe something like this: 1. Change digit0 from 10 to 13 2. digitalWrite(digit0 - digitPosition, LOW); // Turn off previous digit 3. digitalWrite(digit0 - digitPosition, HIGH);
|
|
|
|
|
29
|
Forum 2005-2010 (read only) / Interfacing / Re: Arduino +Sparkfuns 4-digit 7-segment 16pin display
|
on: October 10, 2010, 10:23:15 am
|
Testato, If I understand you correctly, it is probably simplest to adjust the wiring rather than the code. Take a look at Arduino pins 10,11,12,13. Those corresponds to the digits. Say right now you have it wired like this: | Arduino | Display | | 10 | P | | 11 | Q | | 12 | R | | 13 | S |
You have complete control as to which digit value correspond to which display digit. What if you re-wire it like this? | Arduino | Display | | 13 | P | | 12 | Q | | 11 | R | | 10 | S |
Good luck!
|
|
|
|
|