eovnu87435ds Posted August 1, 2010 Share Posted August 1, 2010 Hey, I am thinking of using my Picoduino for a project of mine, which involves channel mixing. I have a 2.4GHz radio for R/C cars, which uses PWM as it's output. since it is technically a digital output, is there any way to input it into the arduino and then map it to 0-255? What I hope to do is a kind of exponential relationship between channel 1 and 2, like the higher the value is on channel 1, the smaller the mapping is for channel 2. The math won't be hard to figure out, I just need some help as to how I can do this... Link to Picoduino if anybody is unfamiliar Quote Link to comment Share on other sites More sharing options...
LillaTortilla Posted August 1, 2010 Share Posted August 1, 2010 (edited) I am no expert, i have some arduino experiance but this is just a theory. however i assume the analog port would read the effective value of the pulse width modulation, just like your average pot, ldr or phototransistor. the reason for this is that the analog reads the flow of current, not resistance wether or not the value would fluctuate like crazy i can not say, but this might not be an issue depending on what you intend to do with it. but it is 500Hz so i doubt you would notice anyting other than the effective value in any case i would make a post on the arduino forum Edited August 1, 2010 by LillaTortilla Quote Link to comment Share on other sites More sharing options...
h3%5kr3w Posted August 2, 2010 Share Posted August 2, 2010 I would think you would use a simple dac to translate. I am pretty sure the standard arduino duemilinauve(depends on which one so YMMV) has a dac built in so you could probably use that. Quote Link to comment Share on other sites More sharing options...
eovnu87435ds Posted August 4, 2010 Author Share Posted August 4, 2010 ill have to try these! I was tempted to post on the arduino forums, but that would mean I'd have to sign up for yet another forum. I knew that with development on the rubber ducky here would mean that there are some arduino-savvy people who could help me. Quote Link to comment Share on other sites More sharing options...
bobdole369 Posted August 4, 2010 Share Posted August 4, 2010 The way I would handle this - feed the PWM output into a small cap with a resistor in parallel. This will smooth it out a bit. You would need to play with it a LOT though, the benefit being a much more stable reading. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.