SPARKY & SPECIAL EFFECTS ENGINEER.
  • Home
  • About Me
    • Contact
    • Qualifications
    • Sailing
  • Stage, TV, Film and Props
    • Stage and TV >
      • Stranger Things
    • Props and replicas >
      • Knife Crime Scenario Mobile Phone
      • Mission Impossible Fallout - Weapon >
        • The Main Weapon
        • The Remote
      • PASIV Case (Inception)
      • UA-571-C Sentry gun (Aliens)
      • The Tardis
      • Thunderbirds Intercom
      • Themed Mini Golf
    • Galaxis Showtek control modules
    • Bespoke PCB's and electronics
  • Electronics
    • Picaxe >
      • 08m2 Learning current detector
    • Arduino
    • Teensy
    • Teensy 4.1 DIN rail system
  • My Projects
    • Mini Roadster R59 Rear Active Spoiler
    • Seat Cupra Born V2 >
      • Cupra sound effects system
      • Extra RGB
    • Ford Ranger >
      • The Ranger's Electronics
      • The 2018 rebuild
      • The 2022 Rebuild?
    • 1:72 Scale RC Submarine >
      • Radio Controlled submarine. The 2020 rebuild
    • HIDecho
    • Multi-Function SFX board
    • Starship bed >
      • Starship Electronics
      • The cockpit
      • Navigation console
      • The power supply
      • The self destruct system
      • Android App
    • TNAC (Thermal Nuclear Alarm Clocks) >
      • TNAC - The 2020 update
      • TT1 TNAC (Tabletop version)
    • The Pirate Ship
    • The Enchanted Forest
    • Christmas Vacation Advent House
    • Phone based SMD Microscope
    • Model railways
    • Misc
  • 3d Printing & CNC
    • Tinkercad and Fusion360
    • 3d printed CNC machine >
      • Wireless CNC controller
      • My CNC wiring
      • Joystick controller
      • Serial switch
      • Laser time
    • Prusa mk3s+
    • FlashForge 3d Printer >
      • Flashforge GSM Monitor
    • RoStock Max V2 3d printer >
      • 3D Printer Enclosure

Picaxe programming

Useful little chaps for those small little projects

Picaxe programmable IC's


Picaxe chips are pretty versatile little beasts.
You can get them in various sizes, and they all have basic input and output functions.
Some have extra features, so it’s down to your requirements when it comes to selection.
One of the smallest I use is the 08m2. This 8 pin chip is great for simply little projects that don’t require many pins.

Picture
Picture

It has ADC inputs (can detect a voltage 0-5v on a pin), along with standard switched inputs and outputs.
The outputs cannot switch much load, so you need to go via a transistor and maybe a relay to control anything decent.
They run on 5v, and so I usually feed them off a 7805 regulator.
Any project that needs switching, monitoring voltages, inputs or maybe simple processing… then these will be fine.
They are not super fast, so they cannot really control graphic displays, you can add LCD text modules to them without any issue.
Picture
I always include a programming port in my circuit designs.  It’s easier to simply plug a laptop in to your project and update the software, rather than remove the chip.
My truck lighting controller has a pair of programming ports on the front panel.  Several times after installation, I edited the software to eliminate issues or update the way the system worked.
Picture
The range of Picaxe IC’s are too wide to cover here, so I will just show the basics of the 18m2. Probably one of the more popular Picaxe chips.

The 18m2. As it says on the tin, and 18 pin IC.
The pinout is below, and I will give you a brief rundown of the available or possible functions.
The lighting controller in my pickup truck runs on the 40 pin 40x2 Picaxe. There is a slave 14m2 (14 pin Picaxe) controlling the Bluetooth data on that system as well.
Programming is fairly simple, using the free Picaxe programming software.  You upload your programs via the USB lead.
I have a development breadboard, which has the programming port built into it.
This makes life much easier.  However, its only 2 resistors to add your own programming port to a chip.  
Picture
Picture

  • In/out (I/O) Mean basically its an input or an output.   You can switch 0-5 volts out or receive a low or high input (again, 0 or 5v).
  • ADC. An analogue voltage pin. Depending on how you set it up, it returns a value depending on the voltage you apply to the pin.
  • DAC. Gives a 32 stepped voltage output.
  • Serial in and serial out. Communication ports for the chip.
  • Touch. For connecting touch sensors.
  • PWM. Pulse width modulated outputs.  For driving loads with pulses, such as servos or stepper motors.
  • Hserin and Hserout. Used for serial communications.
  • i2c SCL and SDA. Used for operating an I2c communications bus.

One thing to be aware of is the limitations of these devices.  Over the years, I have found the Picaxe chips to be a little bit twitchy and troublesome at times.
For instance, there is a command for directly driving servos. Useful you would think.
But, using this command (especially on the 08m2), always seems to result in bad servo jitter.   I believe its a timing/firmware issue.
You can get around the problem sometimes by using Pulsout instead, but it is a shame the dedicated command doesn't really work all that well.
My other issue is cost these days.  Compared with say an Arduino Mini Pro, they are far slower, and far less capable, and with the postage, they cost almost the same price.

There is a forum for the Picaxe community, and a few people will  usually will extend a hand to help.
Proudly powered by Weebly
  • Home
  • About Me
    • Contact
    • Qualifications
    • Sailing
  • Stage, TV, Film and Props
    • Stage and TV >
      • Stranger Things
    • Props and replicas >
      • Knife Crime Scenario Mobile Phone
      • Mission Impossible Fallout - Weapon >
        • The Main Weapon
        • The Remote
      • PASIV Case (Inception)
      • UA-571-C Sentry gun (Aliens)
      • The Tardis
      • Thunderbirds Intercom
      • Themed Mini Golf
    • Galaxis Showtek control modules
    • Bespoke PCB's and electronics
  • Electronics
    • Picaxe >
      • 08m2 Learning current detector
    • Arduino
    • Teensy
    • Teensy 4.1 DIN rail system
  • My Projects
    • Mini Roadster R59 Rear Active Spoiler
    • Seat Cupra Born V2 >
      • Cupra sound effects system
      • Extra RGB
    • Ford Ranger >
      • The Ranger's Electronics
      • The 2018 rebuild
      • The 2022 Rebuild?
    • 1:72 Scale RC Submarine >
      • Radio Controlled submarine. The 2020 rebuild
    • HIDecho
    • Multi-Function SFX board
    • Starship bed >
      • Starship Electronics
      • The cockpit
      • Navigation console
      • The power supply
      • The self destruct system
      • Android App
    • TNAC (Thermal Nuclear Alarm Clocks) >
      • TNAC - The 2020 update
      • TT1 TNAC (Tabletop version)
    • The Pirate Ship
    • The Enchanted Forest
    • Christmas Vacation Advent House
    • Phone based SMD Microscope
    • Model railways
    • Misc
  • 3d Printing & CNC
    • Tinkercad and Fusion360
    • 3d printed CNC machine >
      • Wireless CNC controller
      • My CNC wiring
      • Joystick controller
      • Serial switch
      • Laser time
    • Prusa mk3s+
    • FlashForge 3d Printer >
      • Flashforge GSM Monitor
    • RoStock Max V2 3d printer >
      • 3D Printer Enclosure