

The PICAXE-28A is a versatile microcontroller designed for educational and hobbyist projects. It features 28 pins, enabling multiple input and output connections, making it ideal for controlling a variety of electronic devices. The PICAXE-28A is programmable using a simple BASIC-like language, which makes it beginner-friendly while still offering enough functionality for advanced users. It is commonly used in robotics, home automation, sensor-based systems, and other interactive electronic projects.








The PICAXE-28A microcontroller offers the following key technical details:
The PICAXE-28A has 28 pins, each with specific functions. Below is the pin configuration:
| Pin Number | Pin Name | Function |
|---|---|---|
| 1 | VSS | Ground (0V) |
| 2 | VDD | Positive power supply (4.5V to 5.5V) |
| 3 | Serial In | Serial programming input |
| 4 | Serial Out | Serial programming output |
| 5-12 | Port C (C.0-C.7) | General-purpose digital I/O pins |
| 13-20 | Port B (B.0-B.7) | General-purpose digital I/O pins (some support analog input) |
| 21-28 | Port A (A.0-A.7) | General-purpose digital I/O pins (some support PWM and analog input/output) |
Note: Some pins have dual functionality, such as supporting analog input or PWM output. Refer to the PICAXE datasheet for detailed pin-specific capabilities.
Below is an example of a simple program to blink an LED connected to pin B.0:
' Blink an LED connected to pin B.0
' The LED will turn on for 1 second and off for 1 second in a loop.
main: ' Define the main program loop
high B.0 ' Set pin B.0 to HIGH (turn LED on)
pause 1000 ' Wait for 1000 milliseconds (1 second)
low B.0 ' Set pin B.0 to LOW (turn LED off)
pause 1000 ' Wait for 1000 milliseconds (1 second)
goto main ' Repeat the loop
Explanation:
high B.0: Turns on the LED by setting pin B.0 to HIGH.low B.0: Turns off the LED by setting pin B.0 to LOW.pause 1000: Introduces a delay of 1 second.The PICAXE-28A is not responding to programming commands.
The microcontroller behaves erratically.
Connected devices are not functioning as expected.
The LED does not blink in the example code.
Q: Can the PICAXE-28A handle analog inputs?
A: Yes, some pins on Port B support analog input. Use the readadc command to read analog values.
Q: What is the maximum current output per pin?
A: Each I/O pin can source or sink up to 20mA. However, the total current for all pins should not exceed 90mA.
Q: Can I use the PICAXE-28A with batteries?
A: Yes, the PICAXE-28A can operate with a 4.5V to 5.5V battery pack. Ensure the voltage remains within this range.
Q: Is the PICAXE-28A compatible with Arduino shields?
A: No, the PICAXE-28A is not directly compatible with Arduino shields due to differences in pin layout and programming.
This documentation provides a comprehensive guide to using the PICAXE-28A microcontroller effectively. For further details, refer to the official PICAXE datasheet and programming manual.