![]() ![]() So if the 393 went up by 100 in the time period of 100ms, you know there's a pulse every 1ms - which is 1000hz.Īnd you'd just use a single simple math command to change the data into whatever you want So if you sample every 100ms (10 times a second), you'd multiply it by 10 to get the frequency Yes, and you would use whatever the ardiono's sampling rate happens to be, to determine the actual value. Mikeee, you mean, essentially get the 393 to count the frequency of the tone? The 393 counts the pulses from the phone (through a schmitt trigger you connect) what would i be feeding into the counter? Mikeee, yeah, but where does the 393 come in? it has a 8-bit counter (256 values). So you sample 8 to get the change in a given period of time (maybe 10ms) Tgeeky: I'm going to use a 9AH 12V lead acid.īut sampling 8 pins is the same as sampling 1 pin, time-wise. Tgeeky: was your setup a lead acid thing? Or atleast faster than you'd feel comfortable doing, considering clock cycles are a premium Tgeeky: so you mean I could just use an "intelligent switched" A4 car charger? Well if you add in more things to measure, you'll need to take data in faster than the arduino can handle in a single pin I used a wall wart charger (you actually want a DC 15V or so supply) MarkusDBX: I built something very much like this the other day. Mikeee, but yeah, i do plan to try accelerometer readings as well Mikeee, well, just compass reading for now Since a phone can put out tilt in 2 directions, plus compas direction, and acceleration. MarkusDBX: just do what the advanced charge controllers do, the bulk -> absorption -> float cycle MarkusDBX: what charges the battery? a 12V wall wart? Tgeeky: I find with lead acid it might be hard to control the trickle charge. I mean, you're looking for different axises right? Pokmo I assume you're looking to do more than just a single angle, right? ![]() ![]() If the phone was at 270 degrees, you could have it put out a frequency of 2700hz Mikeee, so in my case, if the phone reports 270 degrees, it'd play 3 tones - one for each digit? I found some powerbanks that might do it too MarkusDBX: so you want a DC ups? most will not regulate the 12V Hi, I'm looking for an UPS without the inverter, just a battery charger (lithium or lead), and then just stabilized DC 12 out. The 393 is two 4 bit counters that you can connect together to make one 8 bit counterĮvery time the signal goes high, it counts up by one. I'm still trying to get my head around using a binary counter You're essentially putting two components together to make a better adc Since each digital pin is way faster to begin with than the adc And sampling 8 bits on an arduino is identical to sampling 1, so the 393 will distribute the data across 8 inputs rather than 1, giving you a much, much, much higher sampling rate ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |