I'm an experienced professional software engineer but a hardware noob. For decades I've felt that pure software is too abstract - it's lives in it's own domain but is isolated from directly interfacing with the real world. Now that I'm retired and have some free time I've picked up Arduino and and have been working on some proof of concept projects for my racing motorcycle. I'm quickly moving beyond the capabilities of the standard 8/16mhz Arduino and purchased a Teensy 2.0 and 3.1 for future development.
My current project is a turbocharger boost controller that will be integrated with a data logger. I'm kicking around the idea of controlling the boost based on data acquisition (for example, the faster the rear wheel turns the greater the amount of boost.) I'll be open sourcing the work when I'm satisfied with it.
The 3.1 looks like a wonderful device for my purposes. It's powerful, small and inexpensive. There are just a couple questions that I have since I'm still coming up to speed on the hardware side.
First of all, the real time clock appears to be something that I'd like to use. I see that there are a variety of 32.768khz crystals for sale on the web. Do you have a specific form factor/model/vendor that you recommend? Better yet, do you have some to sell?
I'm looking at the 3.3v - 5v level translation issue. I bought some of the Chinese Sparkfun designed digital converters and after reading some of the threads here have also ordered a handful of 74HC245N chips. My understanding is that those are all for digital applications. My data logger is going to need to work with 5v analog. I'm thinking that 180ohm/330ohm voltage dividers is the right solution for bringing the voltage down. Thinking for future scenarios, is there a good strategy for 3.3v->5v analog out signals? Also, lets say that I used the divider and my voltage in was higher than 5v - say 5.5 or 6. At what point do I need to worry about accidently killing the Teensy?
When I'm designing a project I alway like to account for unanticipated future scenarios. So rather than hardcoding data logger pins I'm coding to make them software configurable. A logging configuration is downloaded with JSON (see below) then stored in EEPROM and loaded at boot time.
I'm trying to work out a good solution for dealing with the fact that some devices which are plugged in might be 5v and others 3.3v. I could just create specific pins for each voltage, i.e analog pin 1a takes 5v and runs through a divider but 1b goes straight to the Teensy. This doesn't seem like a particularly elegant solution and if a user hooks things up to the wrong pin it will kill the board. Any ideas on a better way to approach this?
Thanks - Eric Marsh
{ "cmd":"config-channels", "data":[
{"name":"tach", "enabled":true,"id":0,"type":tachometer},
{"name":"counter","enabled":true,"id":1,"type":counter},
{"name":"bin","enabled":true,"id":22,"type":switch},
{"name":"value","enabled":true,"id":0,"type":analog}]
}
My current project is a turbocharger boost controller that will be integrated with a data logger. I'm kicking around the idea of controlling the boost based on data acquisition (for example, the faster the rear wheel turns the greater the amount of boost.) I'll be open sourcing the work when I'm satisfied with it.
The 3.1 looks like a wonderful device for my purposes. It's powerful, small and inexpensive. There are just a couple questions that I have since I'm still coming up to speed on the hardware side.
First of all, the real time clock appears to be something that I'd like to use. I see that there are a variety of 32.768khz crystals for sale on the web. Do you have a specific form factor/model/vendor that you recommend? Better yet, do you have some to sell?
I'm looking at the 3.3v - 5v level translation issue. I bought some of the Chinese Sparkfun designed digital converters and after reading some of the threads here have also ordered a handful of 74HC245N chips. My understanding is that those are all for digital applications. My data logger is going to need to work with 5v analog. I'm thinking that 180ohm/330ohm voltage dividers is the right solution for bringing the voltage down. Thinking for future scenarios, is there a good strategy for 3.3v->5v analog out signals? Also, lets say that I used the divider and my voltage in was higher than 5v - say 5.5 or 6. At what point do I need to worry about accidently killing the Teensy?
When I'm designing a project I alway like to account for unanticipated future scenarios. So rather than hardcoding data logger pins I'm coding to make them software configurable. A logging configuration is downloaded with JSON (see below) then stored in EEPROM and loaded at boot time.
I'm trying to work out a good solution for dealing with the fact that some devices which are plugged in might be 5v and others 3.3v. I could just create specific pins for each voltage, i.e analog pin 1a takes 5v and runs through a divider but 1b goes straight to the Teensy. This doesn't seem like a particularly elegant solution and if a user hooks things up to the wrong pin it will kill the board. Any ideas on a better way to approach this?
Thanks - Eric Marsh
{ "cmd":"config-channels", "data":[
{"name":"tach", "enabled":true,"id":0,"type":tachometer},
{"name":"counter","enabled":true,"id":1,"type":counter},
{"name":"bin","enabled":true,"id":22,"type":switch},
{"name":"value","enabled":true,"id":0,"type":analog}]
}