Show Posts
Pages: 1 ... 16 17 [18] 19 20 ... 144
256  Using Arduino / General Electronics / Re: OpAmp or Transistor on: March 24, 2014, 01:13:23 pm
A comparator may be a better choice for speed, eg LM339.
With the transistor, incorporate a collector resistor.
For simplicity I would use a transistor.
257  Using Arduino / Project Guidance / Re: Convert BCD to decimal for switch case on: March 24, 2014, 12:46:45 pm
The good thing about software is you can test things out for yourself.
Note: the top bits (6,7) of PORTB, UNO, are not connected to  i/o pins.
PORTB bit 0 is connected to UNO pin 8 while bit 5 is connected to pin 13.
So if you what to use the top 4 "Pins" this is bits 2, 3, 4 and 5.  Bits 6 and 7 are not usable.
val = PINB & 0b11000011;
For this example, switch case changes, you need to be looking at: 4,8,12,16,20,24,28,32,36,40 etc. 60 for the 16 possible combinations.

18000000UL I've got in the habit of adding UL to things that need to be unsigned long.

Edit:
Learn to make delays with the millis() function.
258  Using Arduino / General Electronics / Re: Resistors for 2N3904 Transistors and LED Strips on: March 24, 2014, 12:07:12 pm
Quote
So, I tried the approach without resistors and I was able to run the clock for hours without noticing any ill effects.
Sounds like you know what to do, but refuse to do it.
259  Using Arduino / Programming Questions / Re: programming on: March 24, 2014, 11:58:21 am
Sure, but before you start your project, google, LM34 Arduino, and servo Arduino.
Many examples on the WEB.
Go thru the basic examples that come with the IDE to get  some experience in programming.
260  Using Arduino / General Electronics / Re: basic soldering iron - tips and advice? on: March 24, 2014, 12:00:55 am
I use only 60/40 lead tin.
Never used lead free.
261  Using Arduino / Project Guidance / Re: Convert BCD to decimal for switch case on: March 23, 2014, 11:21:50 pm
Setup is ok

Edit:
Crossroads is the teacher.
262  Using Arduino / Programming Questions / Re: serial monitor problem on: March 23, 2014, 09:58:01 pm
Still would be nice to see the actual set up in a picture.
Have you tried to use a different input?
263  Using Arduino / Programming Questions / Re: Building a Photovore on: March 23, 2014, 09:26:23 pm
I suggest you google photovore.
Once you have a plan, try things out, then ask for help as needed.
264  Using Arduino / Project Guidance / Re: Ultrasonic Sensor Guidance on: March 23, 2014, 09:06:46 pm
Perhaps, divide and conquer is the way to go.
Simplify the code make it work then ad more code, etc.
265  Using Arduino / Project Guidance / Re: Ultrasonic Sensor Guidance on: March 23, 2014, 08:52:25 pm
  Serial.print(distance1 + distance2 + distance3/3);

First off, do the calculation outside the Serial.Print function.

266  Using Arduino / Programming Questions / Re: Inverted Square Wave Help on: March 23, 2014, 07:31:02 pm
Quote
At 2MHz, port manipulation will not work
Your right of course.
I was thinking much lower.
267  Using Arduino / Project Guidance / Re: Automatic Blinds Project on: March 23, 2014, 06:53:39 pm
One example of doing it:
268  Using Arduino / Programming Questions / Re: Inverted Square Wave Help on: March 23, 2014, 06:17:51 pm
Use PINB to read pin 9, invert, and use PORTB to control pin 10.
Look up Arduino port manipulation.
269  Using Arduino / Project Guidance / Re: Automatic Blinds Project on: March 23, 2014, 06:08:11 pm
Gear motor yes.
Some limit switches also.
H-Bridge circuit/shield.
270  Using Arduino / Project Guidance / Re: I'm new to Arduino and need a guidance on: March 23, 2014, 06:03:39 pm
Power supply(s).

http://learn.adafruit.com/adafruit-wave-shield-audio-shield-for-arduino
Pages: 1 ... 16 17 [18] 19 20 ... 144