My suitable-for-work page. I also have a personal page at the obvious spot.
Just had a question regarding your arduino tacho. I’ve been trying to figure out the code for my own project and found you’ve already done the tacho and from what I can see it doubles as the speedo, which is actually what I’m after. I’m not much of coder yet so just wanted to check which parts of your code needs to be filled in or changed before I load it. It’s probably help to know I’ve go an arduino Nano hooked up to a adafruit stepper motor breakout board with a switec X27.
Any help you can spare will be greatly appreciated.
Many thanks in advance,
Kinda hard to give an answer to that – it all comes down to specifics.
Hi Paul, can you tell me what section is the input frequency and what portion controls the needle movement? Thanks
1) The ring buffer holds the width of the most recent 50 pulses. This gives the frequency. It is populated by the ISR.
2) It depends on what you mean by ‘control’.
The speedo object is the stuff that moves the speedo needle, and the speedoSampler object is the stuff that tells speedo where the needle should be. speedoSampler works out where the needle should be by getting data from pin3 via pin3ISR.
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Notify me of new posts via email.
Create a free website or blog at WordPress.com.