"HIGH" Command not working
I'm using the BS1. When I say
pin7 only raises .3 volts (from .6 to .9)
Help please!
PS: code attached
Thanks!
HIGH 7
pin7 only raises .3 volts (from .6 to .9)
Help please!
PS: code attached
Thanks!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Is this a bad thing? My power source only plugs into the Stamp... nothing else...
Thanks!
You only have about 45mA of current available from that regulator not including current drawn from the I/O pins. If you exceed that the BS1 will not function properly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Should I turn off the backlight on my LCD?
Thanks!
Also, if the BS1 just doesn't have the power to do this, what can I do?
If I get a separate 5V regulator and use that to power the LCD and ADC and pressure sensor, then would it work?
Thanks!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I'm not using an important signal (like ADC output) - just 5V.
What are the filters used for?
Thanks!
Also, how would the caps be hooked up? Between ground and vout? or just on vOut?
It turns out, a .1 uF capacitor, from Vdd to Vss, physically close to each chip will handle this short 'pulse' need of current, and prevent a 'spike' of noise from appearing on the voltage supply line. That, and a 10 uF capacitor between the Vdd/Vss lines close to where power enters the board, is usually enough to 'filter' these transients.
Digital circuitry, to work correctly, requires a stable source of +5 and ground. Without these 'filter caps', noise spikes on the +5 line can cause 'false-triggering' of various circuits, leading to unreliable operation.
It doesn't work. I turn it on, it beeps for about 2 seconds, and goes (and stays off). The next time I turn it on, it only beeps for .5 seconds. Then, the third time, it doesn't beep at all [noparse]:([/noparse]
Help please!
Thanks
PS: I'm using the BS1 and its regulator - I didn't add my own 5V regulator
Post Edited (ghost13) : 6/7/2007 8:17:13 PM GMT
Get a multi-meter. Use it.
www.allelectronics.com/cgi-bin/item/SBZ-413/115/3-16_VDC_PIEZO_BEEPER_.html
It says it take 7ma. The BS1 provides 45ma. 45-7 = 38ma. There should be 38ma left over while it is buzzing!
At minimum, it requires less ma than the LCD. And the LCD lit up. So the buzzer should buzz... right?
Thanks!
Thanks for your help!
Also, I used my multimeter, and for the BS1's PIN3 only oes to about 3 volts for a couple seconds, then drops to zero (not for the above code... for this code[noparse]:)[/noparse].
Thanks!
Post Edited (ghost13) : 6/7/2007 10:23:53 PM GMT
Do you have 5V reading on your Vdd?
If not, is your battery ok?
If your vdd is +5V Do you get 5V reading on any pin when using the HIGH command?
If not then I think your BS1 is broken. What else could it be?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
Is the Stamp broken? If so, what is the warranty? It is brand-new and there is no way I damaged it [noparse]:([/noparse]
Thanks
So why won't the regulator work, either it's broken or...
Is this a 9V battery? if so 7V is just about the very end of the current available. You may measure 7V but have not enough current.
Use a fresh 9V battery and your problem is solved. (I hope)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
Is my BS1 dead? If so, at least it still is under warranty [noparse]:)[/noparse]
EDIT: It somehow seems that my BS1 is fine, and I'm drawing too much current.
I know I need to use a voltage regulator. Is this how I should hook it up (see attached schematics)?
Altimeter1.bmp (first image) is what I have connected now. The VDD still only gives 2.8V
Altimeter2.bmp (second image) bypasses the VDD pin. It isn't used at all. Is this the way to go???
Thanks!
Post Edited (ghost13) : 6/8/2007 8:54:08 PM GMT
Sorry about not editing the original post
Post Edited (ghost13) : 6/8/2007 9:47:25 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Jeff T.
EDIT: I hooked it up the 2nd way, and now it works... except my sensor isn't reading
The Vout pin of the sensor starts at 3.5 volts and gradually drops to 2V in about 10 seconds
I'm using a pressure sensor and the pressure isn't changing
Post Edited (ghost13) : 6/9/2007 1:03:19 AM GMT
Also, NPN transistors·perform better if the Emitter is passing·current·from the·more negative source when asked to conduct·and·not from V+.·I'm seeing in the drawing that you have an NPN Emitter attached to the Battery and expect it to conduct like a switch when the base is turned positive to conduct.· It won't conduct itself·much like a switch if the Emitter and the Base are at the same potential.