Hardware kit and labs
What to buy to move from the simulator to real boards, at three budgets, and a lab that takes each guided build onto real hardware.
Why move to real hardware
Everything on Try Embedded runs on simulated boards, which is the fastest way to learn: no wiring mistakes, no dead parts, and a logic analyzer on every pin. Employers, though, hire people who have made real boards work. Real hardware adds what a simulator leaves out: contact bounce that is messier than any model, a sensor that answers one time in a thousand with garbage, a USB cable that only carries power, and the moment you realise the debugger is the fastest way to find out why.
You do not need much. The starter kit below is enough for every guided build; the other two tiers are for when you want to go further.
The starter kit, about {{$60}}
| Item | Why | About |
|---|---|---|
| Arduino Uno R3, or a good clone | The board most guided builds simulate, so your code moves across unchanged | {{$12-28}} |
| ESP32-C3 or ESP32-S3 development board | Wi-Fi and Bluetooth, for the Secure connected device build | {{$8-15}} |
| Breadboard, jumper wires (male-male and male-female) | Building circuits without soldering | {{$8}} |
| Component kit: LEDs, 220 Ω and 10 kΩ resistors, push buttons, a 10 kΩ potentiometer | The parts in the guided builds | {{$10}} |
| 8-channel USB logic analyzer (24 MHz, works with the free PulseView software) | Seeing UART, I2C and SPI on the wires: the tool you will use most | {{$10-15}} |
| Digital multimeter | Supply voltages, continuity, a pull-up's value | {{$15-25}} |
Add two or three sensors as you reach their lessons: a BH1750 light sensor and a DS3231 real-time clock module (both I2C, a few dollars each), an LM35 analog temperature sensor (the builds assume its 10 mV per °C), and a 24C02 or 24C256 EEPROM module.
The professional's bench, about {{$150}} more
The tools a firmware job assumes you know.
| Item | Why | About |
|---|---|---|
| STM32 Nucleo-64 board (an F4, G4 or L4) | The register maps in the driver exercises are STM32's, and the board carries an ST-LINK debugger | {{$15-25}} |
| Raspberry Pi Pico 2 (RP2350) | A second architecture, with PIO state machines and a clean SDK | {{$5-7}} |
| A debug probe (Raspberry Pi Debug Probe, or a J-Link EDU Mini) | Breakpoints and registers on boards without one built in | {{$12-60}} |
| USB-to-UART adapter (CP2102 or CH340, 3.3 V) | A console on any board, and a second UART to test against | {{$5}} |
| An IMU breakout (LSM6DS3 or similar) and an SSD1306 OLED | SPI and I2C devices with real register maps | {{$5-10}} each |
| Temperature-controlled soldering iron | Headers on breakouts, and repairs | {{$30-60}} |
Later, when a project needs it
- An oscilloscope (2 or 4 channels, 50 to 100 MHz; entry models cost {{$300-450}}). It shows what a logic analyzer cannot: rise times, ringing, a supply that sags when the radio transmits.
- A bench power supply with a current limit, about {{$50-80}}, so a short circuit trips a limit instead of a component.
- A current measurement tool, from a multimeter's µA range to a dedicated power profiler, for low-power work.
Safe habits
- Check a board's logic level before wiring: the Uno is 5 V, the ESP32, Pico and most STM32 pins are 3.3 V, and 5 V into a 3.3 V pin can destroy it. Some STM32 pins are 5 V tolerant; the datasheet's pin table marks them FT.
- Wire with the power off, and check the wiring against the diagram before plugging in.
- Connect the logic analyzer's ground to the circuit's ground first.
- Never draw more than about 20 mA from a pin. An LED always needs its resistor.
Hardware labs
Each lab is a guided build done again on a real board. Build it in the simulator first, so you know your code is right; then any difference is the hardware, which is the lesson. Every lab ends with something to measure.
Blink bring-up
Parts: an Uno, an LED with a 220 Ω resistor on pin 13, a push button from pin 2 to GND.
- Flash the finished build. The heartbeat should look exactly as in the simulator.
- Put the logic analyzer on pins 13 and 2. Measure the heartbeat's period and duty cycle, and compare them with your constants.
- Press the button and zoom in on pin 2: a real button bounces for a few hundred microseconds to a few milliseconds. Check that your debounce time is longer than the worst bounce you see.
On a Nucleo: the user LED is LD2 (PA5 on most Nucleo-64 boards) and the blue button B1 is PC13, active low with an external pull-up. On a Pico 2: the LED is GPIO 25.
UART command console
Parts: an Uno, LEDs with resistors on pins 13 (heartbeat) and 9.
- Open a serial terminal (the Arduino IDE's, PuTTY, or
screen) at the build's baud rate. Type the commands, and check the line endings your terminal sends: CR, LF or both. - Put the logic analyzer on pin 1 (TX) and decode it as UART. Measure one bit time, and check it is 1 / baud.
- Paste a long line into the terminal at once. Does the console keep up, or drop characters? That is the overrun the UART lessons describe.
On a Nucleo: USART2 on PA2 and PA3 reaches the PC through the ST-LINK's virtual COM port, with no extra wiring.
Sensor data logger
Parts: an Uno, a 10 kΩ potentiometer as the sensor (ends to 5 V and GND, wiper to A0), an alarm LED on pin 8, the acknowledge button from pin 2 to GND.
- Log for a few minutes and paste the CSV into a spreadsheet. Plot it.
- Leave the potentiometer still: the raw readings still wander by a count or two. That is ADC noise, and your averaging should flatten it. Compare raw and averaged columns.
- Measure the logging interval with the logic analyzer on TX, and check it against your schedule after ten minutes, not ten seconds.
Smart room thermostat
Parts: an Uno, an LM35 on A0, a DS3231 module on A4 (SDA) and A5 (SCL), a "heater" LED on pin 8.
- Hold the sensor between your fingers and watch the reading rise, and the heater switch off at the setpoint plus the hysteresis, not before.
- Decode the I2C bus to the DS3231 and find the time registers being read.
- With the multimeter, measure the LM35's output (10 mV per °C) and compare it with what your code prints. The difference is the ADC's reference and resolution at work.
I2C sensor driver
Parts: an Uno, two BH1750 modules on A4 and A5, one with ADDR to GND (address 0x23) and one with ADDR to VCC (0x5C).
- Run the scan step and check that both addresses appear.
- Decode the bus: find the address byte, the ACK, the measurement command and the two result bytes, and check your lux conversion against them.
- Unplug one sensor while the driver runs. Your error handling should report it and keep reading the other; plug it back in and it should recover.
Watch for: most BH1750 modules have pull-ups and a regulator on board. With two modules the pull-ups are in parallel, which is fine here; with many devices on one bus they can become too strong.
RTOS application
Parts: an Uno, an LED on pin 13, a potentiometer on A0, a button from pin 2 to GND.
- Flash the build and check every task's timing on the logic analyzer, by toggling a spare pin at the start of each task.
- Make one task deliberately slow (a busy loop) and watch the supervisor restart it.
- Measure the free stack of each task if your RTOS port reports it, and see how close the Uno's 2 KB of RAM is to running out.
Connected sensor node
Parts: an Uno, an LM35 on A0, an LED on pin 13, and a USB-to-UART adapter or the IDE's serial monitor as the gateway.
- Play the gateway yourself: type
CONNACK,PUBACKand commands into the terminal and check the node's replies line by line. - Leave a
PUBACKout on purpose and watch the node resend. - Next step: move the same logic to an ESP32 talking MQTT over Wi-Fi, which is the next build.
Secure connected device
Parts: an ESP32-C3 or ESP32-S3 board, an LED with a 220 Ω resistor on GPIO 4, and a broker: Mosquitto on your computer, or a free cloud MQTT broker that supports TLS.
- Run Mosquitto with a TLS listener on port 8883 and a certificate from your own certificate authority, and put that CA in the sketch instead of the lab's. The OpenSSL commands to make one are in Mosquitto's documentation.
- Stop and restart the broker while the node runs, and check it reconnects and subscribes again.
- Serve a firmware image from your computer over HTTPS and send the update command. Watch the serial log show the other partition after the reboot.
- Point the node at a broker whose certificate your CA did not sign, and confirm it refuses to connect.
Capstone: smart greenhouse controller
Parts: an Uno, an LM35 on A0, a capacitive soil moisture probe on A1, a 1-channel 5 V relay module on pin 7 switching a small 5 V pump (or a lamp, to start), a fan through a logic-level MOSFET (IRLZ44N or similar) with a flyback diode on pin 9, a 16x2 LCD with an I2C backpack and a DS3231 module on A4 and A5, and Menu and Up buttons from pins 2 and 3 to GND. Power the pump and fan from their own supply, with its ground joined to the Uno's.
- Calibrate the probe before trusting the percentages: note the reading in dry air and in a glass of water, and replace the build's 1023 and 256 with yours. Real probes differ by a hundred counts or more.
- Watch the relay module at power-up with the pump disconnected. If it clicks once before your code runs, the pin was LOW for a moment: check that you write HIGH before
pinMode(OUTPUT). - Scope or log the fan pin: check the PWM frequency (about 490 Hz on pin 9) and duty, and listen to the fan. Many fans whine at audible frequencies; that is why real controllers raise it to 25 kHz.
- Run the pump from an empty cup and confirm the tank fault trips and holds until
clear. Then sendtest hangand time the restart with a stopwatch against your watchdog timeout.
Capstone: EV battery management system
Parts: an Uno, four 10 kΩ potentiometers on A0 to A3 standing in for the cells (never connect real lithium cells to an Uno's pins), an ACS712 5 A module on A4, an LM35 on A5, a 1-channel relay module on D7 as the contactor, LEDs with resistors on D3 to D6 (balancing) and D8 (fault), an MCP2515 CAN module (check its crystal: 8 or 16 MHz) and a second CAN node: another Arduino with an MCP2515, or a USB-CAN adapter on your computer.
- Watch the status frame on the second node or with
candumpon a USB-CAN adapter, and decode it by hand against the table in stage 5. Check the counter increments and the frame arrives every 100 ms. - Send the VCU's commands (0x100 with 0, 1 or 2) from the other node and confirm the contactor only closes when asked and only with no fault.
- Turn one cell's knob past 4200 mV for less than 300 ms, then for longer, and confirm only the second trips. Put the logic analyzer on the relay input to measure the time from the fault to the contactor opening.
- Unplug the CAN wires while it runs: stage 9's timeout must print
vcu: lostand open the contactor within about 600 ms. Then pull the LM35's output wire and confirmfault: TSENSE. What should the car do when the BMS goes silent?
Capstone: medical infusion pump
Parts: an Uno, an A4988 driver with a NEMA 17 stepper (set the A4988's current limit first) on its own 12 V supply with the grounds joined, Up, Down and Start buttons on D5 to D7, two more buttons on D10 (door) and D11 (air sensor), a potentiometer on A0 as the pressure sensor, a piezo buzzer on D9 and a 16x2 LCD with an I2C backpack.
- Mark the motor shaft and count turns over ten minutes at a set rate: 200 full steps are one turn, so check the rate in steps per minute against your code. Then check it again with the LCD redrawing, to see that late steps catch up.
- Hold Start, Up and the door button in odd orders and at odd moments: no combination may start the motor with the door open or change the rate while running.
- Measure the alarm's reaction on the logic analyzer: from the door pin falling to the STEP pulses stopping.
- Pull the pressure sensor's wiper wire and tape a button down for a few seconds: stage 9 must raise
ALARM SENSORandALARM KEY, and refuse to be acknowledged until you fix them. - Read about the real standards for infusion pumps (IEC 60601-2-24) and list one alarm this build does not have yet. Add it.
Capstone: railway level crossing controller
Parts: an Uno, three push buttons on D2, D3 and D4 (entry and exit counters, the barrier's down switch), two red LEDs on D5 and D6, green and red LEDs on D7 and D12 for the train's signal, a piezo buzzer on D8 and an SG90 servo on D10 as the barrier, powered from its own 5 V supply with the grounds joined.
- Fix a microswitch where the servo's arm rests when it is down and wire it in place of the D4 button. Then hold the arm up with a finger: stage 4 must fault and keep the signal red.
- Time the lamps on the logic analyzer: each lamp should be on for 500 ms, and the two never at once.
- Send
test hangand watch what the lamps and barrier do in the second before the watchdog restarts the chip. Is that safe? What would a real crossing's hardware do in that second?
Capstone: smart door lock
Parts: an Uno, a 4x4 membrane keypad on D2 to D9, an SG90 servo on D10 as the bolt, a piezo buzzer on D11, a reed switch with a magnet on A0 for the door, green and red LEDs on A1 and A2, and a potentiometer on A3 standing in for the batteries.
- Type codes fast and slow, and with two keys at once: check the Keypad library never reports a key twice.
- Run the app protocol from a Python script on your computer: send
hello, compute the CRC-32 withzlib.crc32, sendopen. Then replay a recorded answer and confirm it is denied. - Measure the servo's current with a USB power meter as the bolt moves. Work out how many movements four AA cells give, and whether 4.0 V leaves enough for one more.
Capstone: smart electricity meter
Parts: an Uno, a potentiometer on A0 for the voltage and an ACS712 (20 A) on A1 with a small DC load (a 12 V lamp from a bench supply, never mains), a push button on D3 for the mains-fail signal, a reed switch and a magnet on D4, a button on D5 for the terminal cover, and a relay module on D7.
- Run the lamp for a measured time with a stopwatch and compare the meter's watt-hours with volts × amps × hours from a multimeter. How close is it, and where does the error come from?
- Read the registers with a Modbus tool on your computer (mbpoll, or pymodbus in ASCII mode) instead of typing frames by hand.
- A real meter measures AC: look up how a metering chip (an ADE7953, say) samples voltage and current thousands of times a cycle to get real power, and what this build would need to change to use one.
Capstone: robot arm joint controller
Parts: an Uno, an A4988 driver and a NEMA 17 stepper on its own 12 V supply (set the current limit first), a microswitch on D2 at one end of the joint's travel, a large red button on D5 as the emergency stop, and an ACS712 (5 A) in the driver's supply line on A1.
- Mount a pointer on the shaft and home it ten times: the pointer should stop within one step each time. Then home it twice, fast then slow, and compare.
- Put the logic analyzer on STEP and look at the pulses during a move: the gaps should shrink, hold, then grow, the trapezoid in time.
- Hold the shaft by hand during a move and watch the current: check that the collision threshold is above the current of a normal acceleration and below the current of your hand stopping it.
Capstone: quadcopter flight controller
Parts: an Uno, an MPU6050 module on A4 and A5, four LEDs with resistors on D3, D5, D6 and D9 standing in for the motors' speed controllers, and a potentiometer on A0 for the battery voltage. Never connect propellers to a learning build.
- Tilt the board by hand and compare the printed roll and pitch with a phone's spirit level app, then tap the table hard: the complementary filter should barely move while the accelerometer alone would jump.
- Lay the board still for ten minutes and watch the angles: any drift shows how good the gyro calibration is.
- Measure
loop maxwith the serial printing on and off. How much of the 10 ms budget does printing take?
Capstone: fitness band
Parts: an Uno, an MPU6050 module on A4 and A5, a pulse sensor (the "Pulse Sensor" or a MAX30102 breakout read on its analog output) on A0, a touch button on D4 and a small vibration motor through a transistor on D6.
- Wear the board on your wrist (a rubber band works) and walk 100 counted steps. Compare the count, then tune the thresholds and the 250 ms gap.
- Compare the heart rate with a finger on the sensor against your pulse counted for 30 s. Then move your hand: why does motion ruin an optical reading?
- Write a small Python script that runs
syncandacklike the phone app, and check that pulling the USB cable in the middle never loses or repeats a record.
Capstone: packaging line check-weigher
Parts: an Uno, a load cell with an HX711 on D6 and D7, two buttons (or IR break-beam sensors) on D2 and D3 as the photo-eyes, a red button on D5 for the emergency stop, a relay module on D8, an SG90 servo on D10 as the pusher, and three LEDs on A1 to A3 as the stack light.
- Calibrate the load cell with a known weight (a 500 ml water bottle is about 500 g plus the bottle) and replace the 0.42 counts a gram with yours.
- Weigh the same object twenty times and work out the spread: how close to 480 g can a pack be before the machine sometimes rejects it and sometimes not?
- Run a short shift with a few rejects and a stop, and check the OEE by hand from a stopwatch and your own count.
Capstone: espresso machine
Parts: an Uno, an LM35 on A0 taped to a mug of hot water (no real boiler or mains heater: use an LED on D9 for the heater), a button on D2 for brewing, a reed switch with a magnet on D4 as the tank's float, a relay module on D8, a piezo buzzer on D11, and LEDs on A1 and A3.
- Pour hot water in the mug and watch the averaged temperature fall: how many seconds behind the real water is the eight-sample average?
- Lift the LM35 out of the water while the duty is high: stage 5 must trip
fault: no heatingwithin about five seconds. - Look up how a real machine's boiler is protected beyond firmware (a thermal fuse, a pressure valve) and why firmware alone is never enough for a mains heater.
Capstone: cellular modem AT command processor
Parts: an Uno, a potentiometer on A0 as the signal strength, a button on D2 for an incoming call, and LEDs on D6 and D7. A terminal program on your computer (the Arduino serial monitor with "Carriage return" line endings, or PuTTY) plays the host.
- Talk to it in a terminal like a 1990s modem: dial, type,
+++,ATO,ATH. Then try the escape without the guard time and see it go through as data. - Turn on hardware flow control in a terminal program, wire D7 to a USB-serial adapter's CTS pin, and paste a long text: none of it should be lost.
- If you have a real cellular module (a SIM800L or similar), send it the same commands and compare its answers with yours.
Going deeper
Interview question: What do you check first when a board you have just wired does nothing?
Answer: Power and ground before code: measure the supply at the board with a multimeter, check every ground is connected, and check the board is really running (a known-good blink sketch). Then the pin: is it the pin the code uses, in the right mode, and does it change on a logic analyzer? Then the device: its supply, its address or chip select, and its pull-ups. Changing one thing at a time, and checking each layer before suspecting the next, finds the fault much faster than rereading the code.
Explain it: In your own words, explain why it is worth building a project in the simulator before wiring it on a real board.
Answer: The simulator removes the hardware as a variable: if the code works there, it is logically right, so any problem on the real board must come from the hardware or from what the simulator leaves out, such as bounce, noise, timing margins or a wrong connection. That halves the search space when something goes wrong. It also lets you make and fix the easy mistakes quickly, without damaging parts, so time on the bench goes on what only the bench can teach.