

The PICAXE-18X, manufactured by Revolution Education Ltd, is an 8-bit microcontroller designed for educational and hobbyist projects. It is part of the PICAXE family of microcontrollers, known for their ease of use and versatility. The PICAXE-18X features built-in programming capabilities, allowing users to write and upload code using a simple BASIC-like language. This makes it an excellent choice for beginners and experienced developers alike.








The following table outlines the key technical details of the PICAXE-18X microcontroller:
| Specification | Details |
|---|---|
| Architecture | 8-bit |
| Operating Voltage | 4.5V to 5.5V |
| Clock Speed | 4 MHz (internal resonator) |
| Programming Language | BASIC-like (PICAXE Programming Editor) |
| Flash Memory | 2048 bytes |
| RAM | 128 bytes |
| EEPROM | 256 bytes |
| I/O Pins | 5 digital inputs, 8 digital outputs |
| ADC Channels | 4 (10-bit resolution) |
| Communication Protocols | Serial (via programming cable) |
The PICAXE-18X is housed in an 18-pin DIP (Dual Inline Package). The pin configuration is as follows:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VSS | Ground (0V) |
| 2 | Serial In | Serial programming input |
| 3 | Serial Out | Serial programming output |
| 4 | Input 0 | Digital/Analog input (ADC channel 0) |
| 5 | Input 1 | Digital/Analog input (ADC channel 1) |
| 6 | Input 2 | Digital/Analog input (ADC channel 2) |
| 7 | Input 3 | Digital/Analog input (ADC channel 3) |
| 8 | Output 0 | Digital output |
| 9 | Output 1 | Digital output |
| 10 | Output 2 | Digital output |
| 11 | Output 3 | Digital output |
| 12 | Output 4 | Digital output |
| 13 | Output 5 | Digital output |
| 14 | Output 6 | Digital output |
| 15 | Output 7 | Digital output |
| 16 | Reset | Active-low reset pin |
| 17 | VDD | Positive supply voltage (4.5V to 5.5V) |
| 18 | Not Connected | No internal connection |
Below is an example of a simple program to blink an LED connected to Output 0 (pin 8):
' Blink an LED connected to Output 0 (pin 8) of the PICAXE-18X
' The LED will turn on for 1 second and off for 1 second in a loop.
main: ' Define the main program loop
high 0 ' Turn on the LED (Output 0 HIGH)
pause 1000 ' Wait for 1 second (1000 ms)
low 0 ' Turn off the LED (Output 0 LOW)
pause 1000 ' Wait for 1 second (1000 ms)
goto main ' Repeat the loop
Microcontroller Not Responding
Code Upload Fails
Inputs Not Working
Output Pins Not Driving Actuators
Q: Can the PICAXE-18X be powered by batteries?
A: Yes, the PICAXE-18X can be powered by batteries, provided the voltage is within the 4.5V to 5.5V range.
Q: What software is required to program the PICAXE-18X?
A: The PICAXE Programming Editor, available for free from Revolution Education Ltd, is used to write and upload code.
Q: Can I use the PICAXE-18X with I2C or SPI devices?
A: The PICAXE-18X does not natively support I2C or SPI communication. However, bit-banging techniques can be used for basic communication with such devices.
Q: How many times can the PICAXE-18X be reprogrammed?
A: The PICAXE-18X can be reprogrammed thousands of times, making it ideal for iterative development and experimentation.