CodeX Peripherals Guide
CodeX Peripherals Guide
Every peripheral that plugs into CodeX, what it does, and which curriculum and mission uses it. Print it, project it, or keep it open while your students wire.
Start Here
Peripherals are what turn CodeX from a handheld into a machine that senses and moves. Students plug a component in, write a few lines of Python in CodeSpace, and watch the physical world respond.
They come with the curriculum kits, not with a CodeX on its own. Here is what is in each one.
Brain DeCoded with CodeX Kit
Everything needed for the neuroscience missions
- ▸8 RGB LED Ring (NeoPixel)
- ▸180 Positional Servo
- ▸Potentiometer
- ▸Connector Board
- ▸Jumper Wires
Lift-Off with CodeX Kit
The complete set, including the three at left
- ▸Everything in the Brain DeCoded kit
- ▸Button, switch, and microswitch
- ▸Motion, temperature, sound, light, object, and soil moisture sensors
- ▸360 continuous servo, 3V relay, and water pump
- ▸Red and white LEDs, and the divider
- ▸Breadboard set: mini breadboard, resistors, loose LEDs, and the HC-SR04 ultrasonic sensor
Know Your Parts
Most components arrive on their own small carrier board with a plug, so there is no soldering and very little wiring to get wrong. Students connect a part, run their program, and move on. Nothing is used up by a mission, so one kit teaches year after year. The only things you supply are a cup of water and a little soil for the Lift-Off Mission 9 garden.
Lift-Off Mission 10 is the exception, and it is deliberate: students stop plugging in finished modules and build a circuit themselves, wiring a four-pin sensor by hand.
Sensors and Inputs
These components send information into CodeX. Some are digital, meaning they report one of two states such as pressed or not pressed. Others are analog, meaning they report a range of values that students read as a number and then decide what to do with. The chips on each card show which curriculum uses it.
A standard momentary push button. It reports pressed only while a finger is holding it down, then goes right back to unpressed. This is the first input most students wire, and it is the one that teaches the difference between a program that waits and a program that checks.
Locks into place when flipped, so it holds its state after the student lets go. That makes it the right choice for anything that should stay on or stay off, like a power control or a setting the program reads once at startup.
A knob students physically turn. Instead of on or off it gives a whole range of values, which makes it the friendliest possible introduction to analog input. Students can see their number change in real time as they turn it. Both curricula use it, so it is in the Brain DeCoded kit and the Lift-Off kit.
Detects a warm body moving nearby, the same way a motion-activated porch light or a store alarm does. Students immediately recognize the behavior, which makes it a strong hook for conditionals and for talking about energy conservation.
A small lever switch used as a touch or crash detector. When something bumps the lever, the program knows. In the missions it becomes the sensor that tells a hatch it is fully closed and a lander that it has touched down.
Reports a raw value that changes with temperature. Because the reading is raw rather than degrees, students have to map it to something meaningful, which is a genuinely useful lesson in how sensor data becomes information.
Sensitive to sound intensity, so it detects a clap or a shout rather than recognizing words. Students use it to trigger an alert, and it is a reliable crowd pleaser in a room full of people willing to make noise.
Measures how much light is falling on it. Real systems use this for solar panel monitoring and automatic dimming, and that is exactly what students build with it: a panel that finds the brightest direction and follows it.
Pairs an LED that emits infrared light with a phototransistor that detects it. When an object is close enough to bounce that light back, the sensor notices. Students use it to detect an obstacle without touching it.
Reads how much moisture is in the soil around it. This is the sensor that closes the loop in the automatic garden mission: the program decides when the plant is dry and then does something about it.
Measures distance with sonar. It sends out a pulse of sound and times the echo, which means students are working with the same principle a bat or a submarine uses. It gives a real distance rather than a raw value, so the number means something right away.
Outputs and Actuators
These components take instructions from CodeX and do something in the physical world. This is where students stop reading numbers and start making things happen, and it is usually the moment a class gets loud in the good way.
Light emitting diodes, the very first thing students control. A single LED turning on because of a line of Python is the moment physical computing clicks. They come back again and again as status lights, countdown indicators, and warning lamps. The kit includes red and white LEDs on plug-in boards, plus loose red and amber LEDs in the Mission 10 breadboard set.
Eight pixels in a circle, each one individually addressable in any color. Because students control the pixels by index, it is a natural way into loops and lists: one ring makes a status display, a progress meter, or an alert animation.
Spins continuously in either direction rather than moving to a specific angle. Students control speed and direction, which makes it the right motor for anything that needs to keep turning, like a fan or a conveyor.
Moves to a specific angle within a 180 degree range and holds it. Students give it a number and it goes there. It is in both curriculum kits: a Brain DeCoded model that moves with the data, a Lift-Off solar panel that tracks a light source, and a lander leg that deploys on command.
An electrically controlled switch. CodeX cannot drive a water pump directly, so the relay stands in between: a tiny signal from the program flips a much larger circuit on and off. This is the component that teaches students how a small controller runs big equipment.
A small submersible pump, and the payoff of the automatic garden mission. The soil sensor reads dry, the relay closes, the pump runs, and the plant gets watered. Students build a complete sense-decide-act loop they can watch work.
Circuit Building Blocks
These parts are not sensors or motors. They are the pieces that hold the rest of the circuit together and make it behave, and they are the ones students are most likely to forget or lose. Point them out early.
The small board that gives each peripheral a labeled place to plug in. It comes with both curriculum kits and it is the piece everything else depends on, so it is worth naming out loud on day one rather than treating it as packaging.
A small voltage divider that halves the voltage coming from an analog sensor so CodeX can read the sensor's full range instead of clipping at the top. Any mission with an analog sensor uses it.
A grid of connected holes that lets students build and test a circuit without soldering. It is where the course graduates from plugging in finished modules to wiring a component pin by pin.
The bundle of colored wires that connects peripherals to the connector board, and the breadboard to CodeX. They come with both curriculum kits, and students use them to make every connection in Lift-Off Mission 10 by hand.
Limits the current flowing through part of the circuit so everything runs smoothly and nothing gets more current than it should. Small, easy to lose, and a good first look at why resistance matters.
Quick Reference: What Each Mission Needs
Use this when you are pulling parts before class. Missions are listed in teaching order.
Brain DeCoded with CodeX
| Where | What students do | Components needed |
|---|---|---|
| Mission 1 | Plug In | 8 RGB LED ring, connector board, jumper wires |
| Mission 1 | Plug In... more! | 180 positional servo, potentiometer, connector board, jumper wires |
The rest of Brain DeCoded runs on the CodeX itself and its radio, so no other peripherals are needed.
Lift-Off with CodeX
| Mission | Title | Components needed |
|---|---|---|
| Mission 1 | Welcome to Peripherals | Red LED |
| Mission 2 | Lift-Off! | Button, switch, LEDs |
| Mission 3 | Conserve Energy! | Potentiometer, motion sensor, LEDs, divider |
| Mission 4 | Hatch Lock! | Microswitch, 8 RGB LED ring |
| Mission 5 | Alert System! | Temperature sensor, sound sensor, LEDs, divider |
| Mission 6 | Life Support | Switch, 360 continuous servo |
| Mission 7 | Solar Tracking! | Light sensor, 180 positional servo, LEDs, divider |
| Mission 8 | Prepare Lander! | Microswitch, object sensor, 8 RGB LED ring, 180 positional servo |
| Mission 9 | Automatic Garden! | Soil moisture sensor, 3V relay, water pump, divider, water and soil |
| Mission 10 | Exploring the Surface! | Mini breadboard, jumper wires, 100 ohm resistor, LEDs, ultrasonic distance sensor |
Before Students Wire Anything
- Power down before changing a circuit. Plug and unplug components with CodeX off. It becomes automatic after a week and it prevents almost every mystery failure.
- Match the label to the port. The connector board is labeled for a reason. Have students read the label out loud before they plug in.
- Check for the divider on any analog sensor. This is the single most common reason a sensor reading looks wrong.
- Read the number before writing the logic. Have students print the raw sensor value and watch it change first. Then they can pick a threshold that actually works in your room instead of copying one.
- Everything goes back in its slot. The case is labeled. A two minute cleanup routine at the end of class is what keeps a kit usable for years.
Work through it in this order before you decide a part has failed:
- Is CodeX powered and is the program actually running?
- Is the component fully seated, and in the labeled spot the mission calls for?
- If it is an LED, is it in backwards? LEDs only light one way.
- If it is an analog sensor in a Lift-Off mission, is the divider in the circuit?
- Swap the component with a working group's part. If it works there, the problem is the circuit, not the part.
Where to Go Next
- ▸Brain DeCoded with CodeX digital textbook for the neuroscience missions that use the three included peripherals
- ▸Lift-Off with CodeX digital textbook for the full mission list, standards alignment, and lesson plans
- ▸Lift-Off Mission 1: Welcome to Peripherals to see how students meet the full kit for the first time
- ▸All teacher resources for every Firia Labs digital textbook