Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use PICAXE-28X1: Examples, Pinouts, and Specs

Image of PICAXE-28X1
Cirkit Designer LogoDesign with PICAXE-28X1 in Cirkit Designer

Introduction

The PICAXE-28X1, manufactured by Revolution Education Ltd, is a versatile microcontroller designed for educational and hobbyist projects. It features 28 pins, providing ample input and output connections for a wide range of applications. The PICAXE-28X1 is programmable using a simple BASIC-like language, making it accessible to beginners while still offering advanced functionality for experienced users.

Explore Projects Built with PICAXE-28X1

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ATMEGA328 Battery-Powered LED Blinker with FTDI Programming
Image of Homemade Arduino using ATmega328: A project utilizing PICAXE-28X1 in a practical application
This circuit is a basic microcontroller setup using an ATMEGA328, powered by a 5V battery, and includes an FTDI programmer for serial communication. It features a pushbutton for reset functionality and two LEDs controlled by the microcontroller, with one LED blinking at a 1-second interval as programmed.
Cirkit Designer LogoOpen Project in Cirkit Designer
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
Image of godmode: A project utilizing PICAXE-28X1 in a practical application
This is a microcontroller-based interactive device featuring a Wemos D1 Mini, an OLED display, external EEPROM, and an I/O expander. It includes user input buttons and status LEDs, with potential MIDI interface capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Line Following Robot with ATmega328P and L298N Motor Driver
Image of Arduino-Controlled Line Following Robot with Dual DC Motors and L298N Driver: A project utilizing PICAXE-28X1 in a practical application
This circuit is a line-following robot controller. It uses a Nano 3.0 ATmega328P microcontroller to read inputs from a line sensor and control two DC motors via an L298N motor driver. Power is supplied by a 9V battery regulated through an XL4015 DC buck converter.
Cirkit Designer LogoOpen Project in Cirkit Designer
Nucleo 401RE Controlled Robotic Motor with Vibration Feedback and ADXL345 Accelerometer
Image of MLKIT: A project utilizing PICAXE-28X1 in a practical application
This circuit features a Nucleo 401RE microcontroller as the central processing unit, interfacing with an ADXL345 accelerometer and an INA219 current sensor over an I2C bus for motion sensing and power monitoring, respectively. A DC motor with an encoder is driven by an L298N motor driver, with speed control potentially provided by a connected potentiometer and vibration feedback through a vibration motor. The system is powered by a 12V battery, with voltage regulation provided for the various components.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with PICAXE-28X1

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Homemade Arduino using ATmega328: A project utilizing PICAXE-28X1 in a practical application
ATMEGA328 Battery-Powered LED Blinker with FTDI Programming
This circuit is a basic microcontroller setup using an ATMEGA328, powered by a 5V battery, and includes an FTDI programmer for serial communication. It features a pushbutton for reset functionality and two LEDs controlled by the microcontroller, with one LED blinking at a 1-second interval as programmed.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of godmode: A project utilizing PICAXE-28X1 in a practical application
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
This is a microcontroller-based interactive device featuring a Wemos D1 Mini, an OLED display, external EEPROM, and an I/O expander. It includes user input buttons and status LEDs, with potential MIDI interface capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Arduino-Controlled Line Following Robot with Dual DC Motors and L298N Driver: A project utilizing PICAXE-28X1 in a practical application
Battery-Powered Line Following Robot with ATmega328P and L298N Motor Driver
This circuit is a line-following robot controller. It uses a Nano 3.0 ATmega328P microcontroller to read inputs from a line sensor and control two DC motors via an L298N motor driver. Power is supplied by a 9V battery regulated through an XL4015 DC buck converter.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of MLKIT: A project utilizing PICAXE-28X1 in a practical application
Nucleo 401RE Controlled Robotic Motor with Vibration Feedback and ADXL345 Accelerometer
This circuit features a Nucleo 401RE microcontroller as the central processing unit, interfacing with an ADXL345 accelerometer and an INA219 current sensor over an I2C bus for motion sensing and power monitoring, respectively. A DC motor with an encoder is driven by an L298N motor driver, with speed control potentially provided by a connected potentiometer and vibration feedback through a vibration motor. The system is powered by a 12V battery, with voltage regulation provided for the various components.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Robotics: Controlling motors, servos, and sensors
  • Home automation: Managing lighting, temperature, and security systems
  • Data logging: Collecting and storing sensor data
  • Educational projects: Teaching programming and electronics concepts
  • Prototyping: Rapid development of electronic circuits and systems

Technical Specifications

The following table outlines the key technical details of the PICAXE-28X1 microcontroller:

Parameter Value
Manufacturer Revolution Education Ltd
Part ID PICAXE-28X1
Operating Voltage 4.5V to 5.5V
Clock Speed 8 MHz (internal)
I/O Pins 22 (16 digital, 6 analog)
Programming Language BASIC-like (PICAXE Programming)
EEPROM Memory 256 bytes
RAM 128 bytes
Flash Memory 2048 program lines
Communication Protocols Serial, I2C, SPI
Power Consumption ~2 mA (active), ~50 µA (sleep)

Pin Configuration and Descriptions

The PICAXE-28X1 has a 28-pin dual in-line package (DIP). The pin configuration is as follows:

Pin Number Pin Name Function
1 V+ Positive power supply (4.5V to 5.5V)
2 Serial In Serial programming input
3 Serial Out Serial programming output
4-11 C.0 to C.7 Digital I/O pins
12 GND Ground
13-18 B.0 to B.5 Digital I/O pins
19-24 ADC.0 to ADC.5 Analog input pins (also configurable as digital I/O)
25 Reset Active-low reset pin
26-28 I2C/SPI Pins Communication pins for I2C/SPI protocols

Usage Instructions

How to Use the PICAXE-28X1 in a Circuit

  1. Power Supply: Connect the V+ pin to a 5V power source and the GND pin to ground.
  2. Programming: Use the PICAXE Programming Editor software to write and upload code via the Serial In and Serial Out pins.
  3. Input/Output: Connect sensors, LEDs, or other devices to the I/O pins. Configure the pins as input or output in the code.
  4. Communication: Use the I2C/SPI pins for interfacing with other devices like displays or additional sensors.

Important Considerations and Best Practices

  • Decoupling Capacitor: Place a 0.1 µF capacitor between V+ and GND to stabilize the power supply.
  • Pull-Down Resistors: Use pull-down resistors on input pins to prevent floating states.
  • Programming Cable: Use the official PICAXE USB programming cable for reliable communication.
  • Pin Protection: Avoid exceeding the voltage and current limits of the pins to prevent damage.

Example Code for Arduino UNO Integration

Although the PICAXE-28X1 is a standalone microcontroller, it can communicate with an Arduino UNO via serial communication. Below is an example of how to send data from the PICAXE-28X1 to an Arduino UNO:

PICAXE-28X1 Code:

' Send data to Arduino via serial communication
main:
  serout C.0, N2400, ("Hello Arduino!") ' Send "Hello Arduino!" at 2400 baud
  pause 1000                            ' Wait 1 second
  goto main                             ' Repeat the process

Arduino UNO Code:

void setup() {
  Serial.begin(2400); // Initialize serial communication at 2400 baud
}

void loop() {
  if (Serial.available() > 0) {
    String data = Serial.readString(); // Read incoming data
    Serial.println(data);              // Print the received data to the Serial Monitor
  }
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. The microcontroller does not respond to programming commands.

    • Ensure the power supply is stable and within the operating voltage range (4.5V to 5.5V).
    • Verify the programming cable connections to the Serial In and Serial Out pins.
    • Check that the correct COM port is selected in the PICAXE Programming Editor.
  2. The program runs erratically or not at all.

    • Confirm that the code is free of syntax errors.
    • Use a decoupling capacitor to reduce noise in the power supply.
    • Ensure that input pins are not left floating by using pull-down resistors.
  3. I/O pins are not functioning as expected.

    • Verify that the pins are correctly configured as input or output in the code.
    • Check for short circuits or incorrect wiring in the circuit.

FAQs

Q: Can the PICAXE-28X1 be powered by batteries?
A: Yes, the PICAXE-28X1 can be powered by 4 AA batteries (6V) or a 5V regulated power supply.

Q: What is the maximum current that an I/O pin can handle?
A: Each I/O pin can source or sink up to 20 mA, with a total maximum current of 90 mA for all pins combined.

Q: Can I use the PICAXE-28X1 with a breadboard?
A: Yes, the 28-pin DIP package is breadboard-friendly, making it easy to prototype circuits.

Q: Is the PICAXE-28X1 compatible with external EEPROMs?
A: Yes, the PICAXE-28X1 supports I2C communication, allowing it to interface with external EEPROMs and other I2C devices.