PicaxePi: in circuit programming

I used the combination of Picaxe and Raspberry Pi for the first time a year ago.

 

At that time I programmed the Picaxe by temporarily soldering a connector to the board and connecting it to my laptop.

But I've now made a few simple modifications to my BirdBox2016 controller so I can program the Picaxe from the Raspberry Pi.

PicaxePi in circuit programming

The programming interface between Pic & Pi is described in an earlier post.

Since the 08M2 Picaxe in my birdbox application controls the power to the Pi, I need a simple way to override this during programming. I also need to be able to perform a hard-reset on the Picaxe.

These two issues can be addressed quite simply by adding 2 jumper links to the controller board.

As the 5Volt regulator is controlled via an open-collector Darlington, I can turn on the Pi power by simply grounding the MOSFET gate (Link 2).

 PicaxePi in circuit programming circuit

And I can perform a hard-reset on the Picaxe by disconnecting, then reconnecting the Picaxe power link (Link 1).

Under normal running conditions, Link 1 is fitted, while Link 2 is simply removed and then “parked” on one of the two link pins.

As the serial input on the Picaxe is permanently connected to the Pi, it is important to include the “disconnect” command at the beginning of the Picaxe program. Otherwise the Picaxe program will halt as the Pi boots and waggles the serial input.

It is now possible to re-program the Picaxe while the controller is still connected to the birdbox Pi A+ (…as long as I can access the links). However, as the controller module is easily removed,

 

For more detail: PicaxePi: in circuit programming


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top