Yesterday’s post shows that it the JNµ can be easily be programmed using the standard Arduino IDE, if you get all the pieces right (isn’t that always the case?):
What about the software setup? Well, that too is now very simple:
- download and install a copy of the Arduino IDE 1.5.2
- create a folder called “hardware” inside your IDE’s “sketchbook” folder
- download or – preferably – clone the new ide-hardware package from GitHub
- rename it to “jeelabs” (!) and move it inside the “hardware” folder
The new jcw/ide-hardware project on GitHub was adapted from the arduino-tiny project on Google Code. I didn’t want to wait for that project (it hasn’t been updated for over 6 months), and decided to create a fork on GitHub instead. I did find two other such forks – rambo/arduino-tiny and james147/arduino-tiny, but neither of them appears to offer a major advantage – and since I had to rearrange things to make it work with the IDE 1.5.x structure, there does not seem to be much point in basing things off those forks.
The result of all these steps is that you now have the following new options:
- use the Tools -> Programmer menu to select “Arduino as ISP”
- select “JeeNode Micro” from the Tools -> Boards menu to build for that setup
- use the Tools -> Burn Bootloader menu to set up the fuses
use the standard “Upload” button to upload a sketch using this ISP-based setup:
Those two warnings are harmless, and can be ignored (I don’t know how to avoid them).
Update – Fixed a problem with setting fuses, make sure you use latest code from github.