Instructables
Picture of Arduino command-line tool
This command-line enables "Quick" Arduino prototyping without compilation. Reading analog values, dis-/enabling ports and even I2C register manipulations are done in seconds instead of minutes. I will shows you how to set the time of a "DS1207" I2C realtime clock as well as executing some basic operations.

The impatients of you just download the sketch here: [GitHub] and enter the test sequence "\a2/a3ir10" into the Arduino serial monitor.

The MiniPirate is heavily inspired by the much small and powerful "Bus Pirate" of Ian Lesnet and even uses a small part of it's code.

Please vote for the Arduino contest (top right of this page). The oscilloscope will improve the further developments.

Step 1: (optional) Wiring and power-up (only for DS1307 breakout)

Picture of (optional) Wiring and power-up (only for DS1307 breakout)
Pinout.PNG
power_up.PNG
print.PNG
SaveLoad.PNG
The wiring is very trivial, just pluging the DS1307 real-time clock breakout to the pins A2-A5, leaving the "DS" pin in the air (From Homebrew Computers), please wait with the connection, until the pin power-up is verified. If you don't have a DS1307, just use any other I2C device you have.

The power will be supplied over the pins A2/A3:
- Download [GitHub] and Unzip
- Rename the directory to "MiniPirate"
- Compile and download the sketch on you Arduino
- Open the Serial Monitor in your Arduino IDE ("Tools -> Serial Monitor")

After opening the monitor the help and the first prompt should be displayed. Now we execute the first command. Just type 'p' and hit <enter> in the top line of the Serial Monitor. This will show the current configuration of all ports (INPUT and Floating values).

To set A2 to Ground and A3 to Vcc wie execute: \a2/a3 <enter> and control the result with 'p'. As we don't want to repeat this again and again, we save it with 'x'.

Now we can plug in the module as described above.
 
Remove these adsRemove these ads by Signing Up
bommerbob5 months ago

I have wanted a command-line too for ages, you have saved me from doing all the boring tedious work that is required when one is testing/debugging componentry/circuitry, much appreciated.

ochâtelain (author)  bommerbob5 months ago
You're welcome. More features will come soon.
jamesthequack5 months ago

If you have trouble compiling the code, go to the middle tab (baseIO.cpp and delete the line "#include<WProgram.h>"; me thinks it is an obsolete library)

ochâtelain (author)  jamesthequack5 months ago
Thanks for the remark, I'll fix it soon.
diy_bloke5 months ago

Sadly, the code does not compile.
Ofcourse it first stops at the WProgram.h, fixed that by changing into Arduino.h

But then subsequently there is an entire page with errors that mostly have to do with 'double declaration' doesnt work on 1.0 nor 1.05.
Too bad

Hmm I think I got the problem. For some reason the IDE, upon loading the program, also laods the baseIO.cpp and .h file.
If I copy the code to a blank IDE and close the loaded code, it will compile .
Odd, very odd

ochâtelain (author)  diy_bloke5 months ago
No Problem - Good luck with the code!

OK, the problem is caused because the MiniPirate.ino is situated in the MiniPirate library folder.
The solution is to create an 'examples\MiniPirate' folder in the libraries\MiniPirate folder and put the ino file there