Search This Blog

Sunday, September 10, 2017

OSM 1 - Edit 002

Updated the basic code (main.cpp in Touch32u4_1/Touch32u4_1) to support both AVR (7.0) and Arduino IDE (1.8.3) (located here: https://github.com/OpenSourceVaping/OSM1).  Mostly this involved redoing everything in a more organized and professional manner.  Other than the _BV() macro there really isn't much difference other than the AVR compiler seems to initialize the chip differently than the Arduino IDE (mostly what seems like not setting things like ADC registers to known states).

Added support for the newer "Pro Micro" SparkFun-style Atmel 32u4 chips.

You'll need this: https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide/installing-mac--linux

You'll also need this if your Micro Pro has a "Chinese" CH340G/CH341G Serial USB implementation (see https://kig.re/2014/12/31/how-to-use-arduino-nano-mini-pro-with-CH340G-on-mac-osx-yosemite.html).  Depends mostly, I think, on how cheap the Micro Pro is and where it originates from.  Apparently they couldn't get the usual FTDI driver use here in the US.

Also added a simple limiter code to prevent "full power" from hitting the coil.

Next steps will include a new, smaller two battery case using the Pro Micro.

Working on LED flashlight module that, when combined with planned updates, will create a very powerful flashlight.

No comments:

Post a Comment