

The PICAXE-18A is a versatile 8-bit microcontroller designed for educational and hobbyist applications. It is part of the PICAXE family, which is known for its ease of use and built-in programming capabilities. The PICAXE-18A is preloaded with a bootstrap program, allowing users to program it directly via a simple serial connection without requiring an external programmer.
This microcontroller features a variety of input/output pins, making it ideal for interfacing with sensors, actuators, and other electronic components. Its simplicity and flexibility make it a popular choice for beginners and experienced users alike.








The following table outlines the key technical details of the PICAXE-18A microcontroller:
| Specification | Details |
|---|---|
| Architecture | 8-bit |
| Operating Voltage | 4.5V to 5.5V |
| Clock Speed | 4 MHz (internal resonator) |
| Programming Interface | Serial (RS232 or USB-to-serial) |
| Flash Memory | 256 bytes |
| RAM | 32 bytes |
| EEPROM | 256 bytes |
| Number of I/O Pins | 8 digital I/O, 5 analog inputs |
| Maximum Output Current | 20 mA per pin |
| Package Type | DIP-18 |
The PICAXE-18A has 18 pins, each with specific functions. The table below describes the pin configuration:
| Pin Number | Pin Name | Function |
|---|---|---|
| 1 | VSS | Ground (0V) |
| 2 | Serial In | Serial programming input |
| 3 | Serial Out | Serial programming output |
| 4 | Input 0 | Digital input / Analog input (ADC channel 0) |
| 5 | Input 1 | Digital input / Analog input (ADC channel 1) |
| 6 | Input 2 | Digital input / Analog input (ADC channel 2) |
| 7 | Input 3 | Digital input / Analog input (ADC channel 3) |
| 8 | Input 4 | Digital input / Analog input (ADC channel 4) |
| 9 | VDD | Positive power supply (4.5V to 5.5V) |
| 10 | Output 0 | Digital output |
| 11 | Output 1 | Digital output |
| 12 | Output 2 | Digital output |
| 13 | Output 3 | Digital output |
| 14 | Output 4 | Digital output |
| 15 | Output 5 | Digital output |
| 16 | Output 6 | Digital output |
| 17 | Output 7 | Digital output |
| 18 | Reset | Active-low reset input |
Although the PICAXE-18A is a standalone microcontroller, it can communicate with an Arduino UNO via serial communication. Below is an example of Arduino code to send data to the PICAXE-18A:
// Arduino code to send data to PICAXE-18A via serial communication
void setup() {
Serial.begin(4800); // Set baud rate to 4800 for PICAXE communication
}
void loop() {
Serial.println("Hello, PICAXE!"); // Send a message to the PICAXE
delay(1000); // Wait for 1 second before sending the next message
}
On the PICAXE-18A, you can use the following BASIC code to receive and process the data:
' PICAXE-18A code to receive data from Arduino
main:
serin 2, N4800, b0 ' Receive serial data on pin 2 at 4800 baud
debug ' Display the received data in the debug window
goto main ' Repeat the process
The PICAXE-18A is not responding to programming commands.
Input pins are not reading sensor values correctly.
Output pins are not driving connected devices.
The microcontroller resets unexpectedly.
Can the PICAXE-18A be powered by batteries? Yes, it can be powered by a 4.5V or 5V battery pack. Ensure the voltage remains stable during operation.
What programming languages are supported? The PICAXE-18A is programmed using a simplified version of BASIC, which is beginner-friendly and well-documented.
Can I use the PICAXE-18A with external oscillators? No, the PICAXE-18A uses an internal 4 MHz resonator and does not support external oscillators.
Is the PICAXE-18A compatible with I2C or SPI communication? The PICAXE-18A supports I2C communication but does not natively support SPI. Refer to the PICAXE manual for I2C implementation details.