Welcome to Z2M Codes

Your Arduino & Basic Programming Code Repository

Discover a comprehensive collection of Arduino sketches, sensor examples, IoT projects, and basic programming codes. Perfect for students, hobbyists, and makers!

52+
Code Examples
7
Categories
100%
Free & Open

Explore by Category

Find the perfect code for your next project

๐Ÿ”Œ

Arduino Basics

Fundamental Arduino programming concepts

5 codes
๐Ÿ“ก

Sensors

Working with various sensor modules

29 codes
โš™๏ธ

Motors & Servos

Control motors and servo mechanisms

3 codes
๐Ÿ’ก

LEDs & Display

LED patterns and display modules

7 codes
๐ŸŒ

IoT Projects

Internet of Things applications

2 codes
๐Ÿ“ฑ

Communication

Serial, I2C, SPI, Bluetooth, WiFi

6 codes

Popular Code Examples

Get started with these frequently used codes

Code

Blink LED

The classic \"Hello World\" of Arduino - make an LED blink on and off.

View Code
Code

Serial Communication

Learn to send and receive data through the serial port for debugging and communication.

View Code
Code

DHT11 Temperature & Humidity Sensor

Z2M Part Number: EDT-00005-A

Read temperature and humidity data from DHT11 sensor module.

View Code
Code

Servo Motor Control

Control a servo motor to rotate to specific angles using PWM signals.

View Code
Code

LDR Sensor with Arduino Board

Z2M Part Number: EMS-00017-A

Reads light intensity from LDR connected to A0 and prints values to Serial Monitor.

View Code
Code

Accelerometer Readings

Z2M Part Number: EMS-00003-B

Read X, Y, Z axis values from an analog accelerometer module.

View Code
View All Projects

Why Choose Z2M Codes?

Well Documented

Every code includes detailed comments and explanations

Tested & Verified

All codes are tested and verified to work

Easy to Copy

One-click copy to clipboard functionality

Always Updated

Regular updates with new codes and projects