Show Posts
|
|
Pages: 1 [2] 3
|
|
17
|
Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Mounting of Arduino boards??
|
on: June 11, 2008, 10:35:08 pm
|
Here is a project I did that is mounted in a box. This is a 3 meter analog clock. The box is a wooden box my wife found at a craft store. It looks nice enough that my wife let me put in in the front hallway  Here is whole thing in its box  A view of the inside  A closeup of the meters 
|
|
|
|
|
19
|
Forum 2005-2010 (read only) / Interfacing / v-usb library and board type
|
on: December 12, 2010, 11:29:55 pm
|
|
I was trying some development with the v-usb library from rancidbacon.com and I noticed something odd. If I download the program onto my decimillia, it works ok, but trying to use it on an rbbb or an arduweenie, it does not work (and by not work, I mean that my syslog shows a usb device trying to connect, but it never gets any thing from it). The only thing I can think of is that the decimillia has a crystal and the other two boards use a resonator. Do any of yall have any experience with this? I would rather use one of my cheap boards for this.
|
|
|
|
|
20
|
Forum 2005-2010 (read only) / Interfacing / Re: PS2 Keyboard Emulator
|
on: July 24, 2009, 02:22:41 pm
|
Very interesting! I have also made such a library, and it's quite similar to yours. However, I've had some timing-issues, especially when I try to emulate both a mouse and a keyboard at the same time. Have you tried this with your library? I will definitely look into this later today, as it might solve some problems I've been struggling with for weeks.
I have used it as a mouse and a keyboard but never both at once
|
|
|
|
|
22
|
Forum 2005-2010 (read only) / Interfacing / Re: PS2 Keyboard Emulator
|
on: July 18, 2009, 03:43:54 pm
|
|
Ok I have uploaded to the playground a library that implements the device side of the ps/2 protocol. I used it in a couple projects, including a sun type 5 to ps/2 interface. Also the ps/2 port on the computer can provide plenty of power to drive the arduino
|
|
|
|
|
23
|
Forum 2005-2010 (read only) / Interfacing / Re: internal pulldown resistors?
|
on: March 16, 2008, 01:33:13 am
|
|
If you are hooking up a switch of some kind, you can eaily make use of the internal pull up resistor. Usually we use a switch to turn on the electricity. You push the button and the line goes high. and you would need a pull down resistor to tie the input low. But we also make the electricity go the other way. You use the pull up resistor to tie the input high. You hook one end of the switch to the input and the other end to ground, then when you push the switch the input goes low. Then in your software you look for the input to go low when the button is pushed versus high.
|
|
|
|
|
29
|
Forum 2005-2010 (read only) / Interfacing / Re: Rudimentary Resistance Meter
|
on: March 28, 2008, 12:10:12 am
|
|
The resistor by itself does not change the voltage, only by looking at the whole circuit can you tell what the voltage drop is. There is a resistance in the analog input that you have to consider.
This is more or less what the circuit you are describing will look like A/D converter unknown | 100Mohm +5 ----^^^^^-----+----^^^^^^------ | --- -
According to the atmega168 datasheet the input resistance on the analog input is 100Mohm. So the input acts like there is a 100Mohm resistor between the a/d converter and ground. if you have a 100Kohm resistor with on end connected to the analog input and the other to +5 then the voltage at the input will be 4.999 volts. if you use a 1Kohm resistor then it will be 4.99999 volts. That wont give you much range at all on your reading.
by using your unknown resistance as part of a voltage divider you will get a wider range of readings. if you want to read between 1K-10K ohm, put a 4 k resistor in series with it
Arduino input unknown | 4 kohm +5 ----^^^^^-----+----^^^^^^------ | --- -
This will give a range of voltages between 4V and 1.43V. Without the divider you would get a range 4.99999V to 4.9999V. The divider is a much better solution
|
|
|
|
|