tag:blogger.com,1999:blog-7910611153612336567.post1739532332792764176..comments2024-03-28T05:55:52.002-07:00Comments on Ilektronx: Xbee Enabled Joystick, part IStephen Farnsworthhttp://www.blogger.com/profile/09128294133162852134noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-7910611153612336567.post-77619755131267778242014-12-20T14:43:32.985-08:002014-12-20T14:43:32.985-08:00Basically I have a button which instead of being c...Basically I have a button which instead of being connected to 3.3V is connected to ground and there is nothing I can do about it. Now that it is connected to ground im not sure how to go about it. I have tried a few things but in vein. I have two buttons like this connected to pins DIO2 and DIO3 of a series 1 xbee and would like to know if it is possible and if so what to set the pins to and how to connect it physically.Anonymoushttps://www.blogger.com/profile/07765348333302837367noreply@blogger.comtag:blogger.com,1999:blog-7910611153612336567.post-8687822457603215192012-09-03T23:27:01.498-07:002012-09-03T23:27:01.498-07:00Generally, input pins on digital devices can act a...Generally, input pins on digital devices can act as input or output. If a pin is configured as an output, and you supply a raw voltage to it, you damage at least the pin, if not the entire circuit. Negative logic is generally safer; meaning, a pullup keeps the voltage high (and limits any current to the input pin) and the button pulls it to ground. General safe practice.<br /><br />I think the frequency you are referring to is the sample rate. This is just how many times the XBee reads the ADC pin values in a second. Nothing to do with the RF frequency. If your sample rate is too high, it will try to send too much data across the RF link.<br /><br />You need to make the joystick circuits into voltage dividers to work with the XBee's ADC. If you didn't ground one of the contacts on the joystick potentiometers, the wiper contact would always be at 3.3V. Game ports that this joystick were meant to work very differently.<br /><br />Lastly, that is actually a voltage regulator, LM317, I believe. Just a common adjustable linear voltage regulator. The caps are just for voltage smoothing.<br /><br />And, no need to apologize for your English! Learning anything through a language you may not be comfortable can be very difficult. I know from experience.<br />Stephen Farnsworthhttps://www.blogger.com/profile/09128294133162852134noreply@blogger.comtag:blogger.com,1999:blog-7910611153612336567.post-11225526280623209262012-09-02T22:35:46.488-07:002012-09-02T22:35:46.488-07:00Hi, I'm getting lot of knoledge from these blo...Hi, I'm getting lot of knoledge from these blog so.. could you explain me a few things? at first, why do you say you need pullup resistors at the push buttons? shouldn't you need pulldown resistors at there?<br /><br />then, after de xbee configurations you said someting about the frequency, why do you change it? and if I anderstud well, do you change the xbee frequency?<br /><br />And at last, why did you do the voltage divider? was it to handle the motor and xbee on the reciber? because I don't see any reason to do it on the Joystick one, I mean, everything is working on 3,3V...<br /><br />And what's the transistor on the image for?<br /><br />Really thank's for your time, it is being very helpfull, and sorry about my englishJoamanyahttps://www.blogger.com/profile/16494011761307723700noreply@blogger.com