Skip to content Go to the virtual P-Bit
Contents
User guide

P-Bit Guide

The P-Bit is an environmental mini-computer: it measures its surroundings and shows them on screen. This teachers' guide takes you from the box to your first lesson with a virtual P-Bit.

I've just received itBatteries, safety and first steps →

See it on the virtual P-Bit

Discover what it does: 6 sensors · 4 Labs · Alerts with LED and buzzer · 20 learning situations. It measures without internet or installation · No programming needed.

Start · 1 of 3

Before you start

What you need and what to know before switching it on for the first time.

You need

4 AAA batteries, not included. They can be rechargeable, but the P-Bit does not charge them: charge them separately, in their own charger.
  • The P-Bit.
  • A capacitive soil moisture sensor (Crowtail V2.0, from Elecrow). It goes to port IO35, the red one.
  • A DS18B20 temperature probe (from Elecrow) with a 90 cm cable. It goes to port IO33, the black one.
  • A 1 m USB-C cable.

In the 4-pack: four P-Bits, one of each colour, each with its own soil sensor, probe and cable.

Safety in 30 seconds

  • Do not immerse it or leave it out in the rain: the P-Bit is not waterproof.
  • The USB-C port is for loading programs from a computer. If you are working with water or other liquids, do not leave it connected to the computer: use the batteries or an external power bank.
  • Connect and disconnect external probes with the P-Bit switched off.
  • The Thermometer probe withstands up to 100 °C through its cable: do not use it in hotter liquids.
  • It is an educational device, not a toy. Recommended from age 14 and with adult supervision.

This guide comes with a virtual P-Bit that runs the same program (the firmware) as the real device. As you read, it will show the screen being talked about, and you can take control whenever you like: drag its wheel to turn it and tap it to press.

Next: Get to know your P-Bit. See what the board carries →

Start · 2 of 3

Get to know your P-Bit

Almost everything is on the front, with its name printed on the board. The switch is on the left side and the batteries are at the back.

The P-Bit seen from the front; the part you choose is marked with a green ring and its number
Tap a part, on the photo or in the list, to see what it is and what it is for. Studio photo: its screen is from an earlier firmware version (today the light box says “Lux”).
The P-Bit's 1.8-inch TFT screen switched on, with its blue board and the silkscreen 1.8″ 128X160 RGB_TFT

1Screen

Where you see the measurements, the graphs and the menus.

In the guide
The virtual P-Bit shows this same screen, with the real firmware
Technical data
Type
1.8″ colour TFT
Resolution
160 × 128 pixels
Controller
ST7735 (Sitronix), over an SPI bus

Next ›

Blue DHT11 sensor, with a grille, seen at an angle on the P-Bit's board

2Air sensor (TH Sensor)

It measures the temperature and the humidity of the air around it.

Where you see it
The Temperature and Humidity screens, as well as Climate Lab and Home
Units
Temperature in °C or °F (changed in its menu) and relative humidity in %
Technical data
Sensor
DHT11, by Aosong: digital, over a single wire
Connection
ESP32 GPIO4
Reading
At most one per second

‹ PreviousNext ›

The P-Bit's 5 mm RGB LED lit yellow

3LED (RGB LED)

A coloured light that sums up what is happening on the screen.

What it shows
It changes colour with the reading on the screen and in the alerts
Technical data
Type
5 mm RGB LED: red, green and blue in a single capsule
Model
XL-B504RGBC, by XINGLIGHT, common anode
Control
PWM: the ESP32 adjusts the brightness of each colour and mixes them
Connection
GPIO5 (red), GPIO17 (green) and GPIO16 (blue)

‹ PreviousNext ›

The P-Bit's electret microphone capsule, with its black grille

4Microphone (Mic)

It measures how much noise there is.

Where you see it
The Sound screen
Privacy
It only calculates the level: it does not record or store sound
Technical data
Capsule
GMI9767P electret microphone, by INGHAi, 9.7 mm
Amplifier
LM358, with up to 20× gain
Connection
GPIO36, analogue input
How it measures
The difference between the highest and the lowest peak of the signal in each 20 ms window, converted to a level from 0 to 100% and smoothed

‹ PreviousNext ›

The P-Bit's LDR photoresistor seen up close, with its red zigzag track

5Light sensor (LDR)

It measures the light reaching the front of the P-Bit.

Where you see it
The Light screen
Range
From 0 to 8,000 lux
Accuracy
These are estimated lux: it is good for comparing, it is not a calibrated lux meter
Technical data
Type
Photoresistor: the more light it receives, the less resistance it has
Model
GL5516, by Senba: 5 to 10 kΩ in light and about 500 kΩ in the dark. It is most sensitive to green light (540 nm)
Connection
GPIO39, analogue input
How it measures
It averages several readings and converts them to lux with a hand-tuned formula

‹ PreviousNext ›

The P-Bit's black passive buzzer, cylindrical, seen at an angle

6Buzzer (Buzzer)

The beeps when you navigate, and the alerts.

When it sounds
When turning and pressing (Beep), in the alarms and in the start-up melody
How to turn it off
In System: “Beep” and “Alarms”, each one separately
Technical data
Type
Passive buzzer: it sounds at the frequency the ESP32 sets, so it can play different notes
Model
SEA-12095, 12 mm: 85 dB, and it sounds louder around 4 kHz
Connection
GPIO18

‹ PreviousNext ›

The P-Bit's encoder wheel, black and ridged, seen at an angle

7Wheel (Encoder)

It controls the whole P-Bit.

Gestures
Turn, press and hold pressed for 1.2 s
Carousel
It is circular: after the last screen it goes back to the first
Technical data
Type
Rotary encoder with push button
Model
EC11, by Alps Alpine (EC11L1525G01)
Connection
GPIO14 and GPIO12 (rotation) and GPIO13 (push button)

‹ PreviousNext ›

The P-Bit's six coloured ports with their silkscreen: I2C0, I2C1 and I2C2 in yellow, IO33 in black, IO32 in blue and IO35 in red

8Ports

Six coloured connectors for probes and expansions.

IO35, red
Capacitive soil moisture sensor (Soil screen)
IO33, black
DS18B20 temperature probe (Thermometer screen)
Warning
  • Connect and disconnect the probes with the P-Bit switched off.
Technical data
Connector
HY2.0-4P, 4 pins and 2.0 mm pitch. Compatible with Grove cables and Crowtail probes (tested)
IO32, blue, and I2C0–I2C2, yellow
For expansions. The current firmware does not use them

‹ PreviousNext ›

White sliding power switch sticking out of the side of the P-Bit's case

9Power switch

It switches the P-Bit on and off: it slides.

Where
On the left side of the case
Screen
With batteries or USB but not switched on, the screen stays off
Technical data
Type
Slide switch (MK-12C02-G025)

‹ PreviousNext ›

Back of a green P-Bit without the cover: the battery holder with its four empty slots for AAA batteries

Power

Where it gets its energy from.

Batteries
4 AAA, not included, in the battery holder at the back. They can be rechargeable
Charging
The P-Bit does not charge the batteries: charge them separately
Without batteries
An external power bank through the USB-C

‹ PreviousNext ›

The P-Bit's USB-C port seen from the front, in the opening of the cyan case

USB-C port

For loading programs and, if needed, for power.

Programs
It connects to a computer to load programs, such as a firmware update
Power
An external power bank can power it. It does not charge the batteries
Controller
If the computer does not recognise the P-Bit, it may be missing its driver (CH340)
Warning
  • With liquids, do not leave it connected to the computer: use the batteries or an external power bank.
Technical data
Cable
The box comes with a 1 m one
USB chip
CH340E, by WCH

‹ PreviousNext ›

Espressif ESP32-WROOM-32 module: a small board with a silver metal cover and gold pins along the edges

ESP32 (the brain)

It reads the sensors, draws the screen and runs the firmware. It sits under the screen: you cannot see it without taking the P-Bit apart.

Programming it
Through the USB-C port, with the BOOT button. It can be programmed with P-Blocks
Technical data
Model
ESP32-WROOM-32E-N4 module, by Espressif, with 4 MB of flash memory
Pins
Which part goes to each one, in the pin table

Photo: Ubahnverleih, Wikimedia Commons, CC0. It is the ESP32-WROOM-32, from the same family; the P-Bit's is the 32E version, which looks almost identical.

‹ Previous

Next: First steps. Now that you know it, switch it on →

Start · 3 of 3

First steps

Before switching it on: Safety in 30 seconds →

Six steps and you will have it working: give it power, switch it on, choose the language, get to a sensor, learn to press and hold, and read your first measurement.

  1. Put in 4 AAA batteries in the battery holder at the back, with each slot's spring against the negative pole (−) of the battery. Without batteries, an external battery (power bank) through the USB-C will do.

    You will see: nothing yet; the screen switches on in step 2.

    Back of an open yellow P-Bit: the battery holder cover beside it and the battery holder with its four slots for AAA batteries
  2. Switch it on with the white switch on the left side (part 9). If you do not switch it on, the screen stays off even when it has power.

    You will see: the start-up logos and, the first time, the language menu.

    The P-Bit's screen at start-up: the POWAR logo
  3. Choose the language: turn the wheel and press to confirm. It asks you the first time, and again after a Full reset or a firmware update.

    You will see: Home, with TEMP., AIR, Lux and MIC. It is already measuring your classroom.

    On the virtual P-Bit, the whole menu changes to the language you tick. Menu not showing? Press “First switch-on” in step 2.

    The P-Bit's screen: language selector
  4. Turn the wheel to Temperature. Each turn moves to the next screen of the carousel: Home → Climate Lab → Plant Lab → Thermo Lab → Temperature.

    You will see: Temperature, with the air reading in large type.

    On the virtual P-Bit, drag the wheel in a circle or use ⟳. A breathing ball with “ZZZ”? It is asleep.

    The P-Bit's screen: Temperature, Main view
  5. On Temperature, press and hold. Pressing changes view; holding for 1.2 s opens the settings menu, and you leave it with “Exit”.

    • Press onceThe screen changes view.
    • Hold for 1.2 sThe settings menu opens.
    • Leave the menuTurn to “Exit” and press.

    You will see: another view of Temperature and, when you hold, its settings menu.

    Do it on a sensor: on Home, holding opens demo mode.

    More about holding

    On Timer it opens the editor or resets to zero; on Home, demo mode.

    The P-Bit's screen: Temperature settings menu
  6. Challenge: is your classroom in Optimal? Press until you reach the Info view. It will say Cool, Optimal or Warm, according to the factory limits: 18 and 28 °C.

    You will see: the Temperature Info view with its status.

    The P-Bit's screen: Temperature, Info view
Discover

Screens and menus

The P-Bit's twelve screens form a carousel: you turn the wheel and move from one to the next. They are all read and adjusted the same way, so what you learn here works for all six sensors.

The views

On each sensor, pressing changes view, and the P-Bit remembers the last one you used.

Sound adds two more views, VU and Wave, right after Main.

Reading the screen

The P-Bit's screen: Temperature, Info view

Settings menus

Holding for 1.2 s opens the menu of the sensor you are on. They all work the same way:

Temperature settings menu
1. Turn to choose and press
Low limit editor
2. Turn to change the value and press
Saved limits
3. “Saved”: press to go back
  • The options are at the top; Reset bottom left and Exit bottom right.
  • Values do not wrap round: when they reach the minimum or the maximum, they stay there.
  • Reset asks for confirmation and always starts on NO.

Next: Sensors. What each screen measures →

Discover

Sensors

The P-Bit has four sensors on the board and two probes that plug into its ports. Each has its own screen in the carousel.

They are all explained the same way: what it measures and how, its screens, its settings, ideas for class and care.

Discover

Labs

The Labs bring several readings together on a single screen to tell you something more: how the air is, how a plant is doing, or how two temperatures differ. They are the first stops on the carousel.

Next: Alerts. When the P-Bit warns you →

Discover

Alerts: LED and buzzer

The P-Bit warns you in three ways: on the screen, with the LED colour and with the buzzer. All three follow the same rules for every sensor.

When it warns

Each sensor has its own limits, which you choose in its settings menu. If a reading leaves them, there is an alert. ON or OFF: whether its alerts come switched on by default.

  • TemperatureOFF

    It warns if it reaches the low limit (18 °C) or the high one (28 °C).

  • HumidityON

    It warns if it drops below “Dry” (30 %) or goes past “Very humid” (70 %).

  • LightON

    It warns if it drops below “Max. dim” (100 lux) or reaches “Max. bright” (2000 lux).

  • SoundOFF

    It warns if it reaches “Max. normal” (60 %) and, more seriously, “Max. loud” (85 %).

  • SoilON

    It warns if it drops below “Dry” (20 %), reaches “Humid” (80 %) and, more seriously, reaches 90 %.

  • ThermometerOFF

    It warns if it reaches the low limit (0 °C) or the high one (40 °C).

  • With Alerts switched off in its menu, that sensor does not warn in any way.
  • With no sensor there is no alert: Soil and Thermometer do not warn without their probe.
  • Alerts work on any screen.

On the screen

Each sensor's Info view states the status in words and carries the coloured dot in the corner:

The P-Bit's screen: Humidity, Info view
Humidity, Info view
The P-Bit's screen: Soil, Info view
Soil, Info view
Coloured dotIt means
GreyAlerts off, or the sensor is missing
GreenEverything within the limits
Orange or blueMild alert: the value has left a limit
RedSerious alert

The LED

The LED tells different things depending on the screen:

  • On a sensor's screen it repeats the colour of the value (each sensor explains its own). On Light it goes off, so as not to distort the measurement. With no reading, it stays dark red.
  • On Home, Climate Lab, Thermo Lab and System it shows the alerts. With none, each has its own colour: blue on Home and Climate Lab, orange on Thermo Lab and green on System.
  • BlueTemperature or Thermometer: cold
  • RedTemperature or Thermometer: heat
  • OrangeHumidity: dry air
  • RedHumidity: very humid air
  • Light blueLight: low
  • AmberLight: strong
  • OrangeSound: loud
  • RedSound: very loud
  • RedSoil: dry
  • BlueSoil: humid or very humid
If there are several alerts at once

The LED shows the most serious alert, in this order:

  1. First: Very loud sound and Soil above 90 %.
  2. Then: heat, very humid air, strong light and loud sound.
  3. Last: the rest.
  4. If they tie, the first on this list wins: Soil, Temperature, Humidity, Thermometer, Light and Sound.

The buzzer

It has two switches in System, both off by default:

  • Beep: the handling sounds. A short click when you turn and press, and a double beep when you open a menu.
  • Alarms: the sound of the alerts. To hear a sensor's, you need both things: Alerts on in its menu and Alarms on in System.

An alert sounds once, when the status changes: if the value stays outside the limit, it does not sound again. Between two warnings from the same sensor at least 1.2 s pass (1.8 s on Soil).

SensorHow it sounds
Temperature and ThermometerCold: a low beep. Heat: a high one.
HumidityDry air: a high beep. Very humid: a low one.
LightLow: a short, low beep. Strong: a high and shorter one.
SoilThree-note tunes: when it dries out, they go down; on returning to optimal (for example, after watering), they go up; above 90 %, they go down and are lower. Between “Humid” and 90 % it does not sound.
SoundIt never sounds: the buzzer would leak into the microphone. It warns only through the Info view and the LED.

Next: Timer and System →

Discover

Timer and System

The last two screens measure nothing: the Timer counts time and System stores the settings. Tap one to see it.

Next: Your first lesson. Four steps with a question →

In the classroom · Your first lesson

Your first lesson

Is the temperature the same next to the window as in the middle of the classroom? Find out with a P-Bit in four steps.

  1. Leave the P-Bit in the middle of the classroom, on Temperature, Main view.

    You will see: the air temperature in large type.

    Air Temperature Main screen
  2. Press the wheel until Curve and note down the temperature.

    You will see: the last 2 min 40 s.

    Air Temperature Curve screen
  3. Take it next to the window and wait a moment before reading.

    You will see: the curve rises or falls and then flattens out. Now you can read.

  4. Press the wheel until Info and compare with the middle of the room.

    You will see: Cool, Optimal or Warm.

    Air Temperature Info screen
What to look for: ± 2 °C is good enough for comparing. Measure both places with the same P-Bit and look at what changes, not at the exact number.

For the students: why do you think it is not the same in the two places? What could have changed it: the sun, the window, the people?

The next level: The Climate at Your School (Temperature and Humidity, from Year 4 to Year 10).

Next: Learning Situations. Take it to the classroom →

In the classroom

Learning Situations

The P-Bit is designed for measuring the environment with students. There are 20 ready-to-use Learning Situations, from primary school to ESO, with their link to the curriculum.

Each sensor also comes with quick ideas in its “In the classroom” section. To search by year, subject, sensor or SDG, use the Learning Situations finder.

Next: Programming it. From blocks to code →

In the classroom · Programming it

Programming it

You do not need to know how to program: the P-Bit comes ready to use out of the box, all with the wheel. To go further, P-Blocks: blocks you drag in the browser, without writing code, with the P-Bit over USB-C.

P-Bit sensor blocks: light, sound, soil, temperature and humidity
1. Drag the sensor blocks
A P-Blocks program that reads the temperature and writes it on the screen, with the simulated screen beside it
2. Watch your program on the simulated screen
P-Blocks blocks beside the Arduino C++ code they generate
3. Read the C++ code they generate

Get to know P-Blocks →

Warning
  • Uploading a program means opening the P-Bit. With the board exposed, work on a dry table, touch something metal first to discharge static electricity and hold the P-Bit by the edges, without touching the components.
  • Uploading another program replaces the factory firmware. How to put it back will be explained in the P-Blocks guide, in preparation.
Uploading a program (BOOT button)

To upload a program, for example from P-Blocks, the P-Bit has to start in programming mode. You do it with the board's BOOT button:

  1. Switch it off with the switch and unplug the probes.

  2. Take off the acrylic front: loosen the 4 plastic screws at the corners, without forcing them.

  3. Find the BOOT button: it is below the screen, next to the USB-C connector, on the top side of the connector.

  4. Connect the P-Bit to the computer by USB-C.

  5. Hold BOOT down and switch it on with the switch. It is now in programming mode: upload the program.

  6. When you finish, switch it off and on again without pressing BOOT. Put the front back and tighten the screws just enough: they are plastic.

Next: Care and safety →

Reference

Care and safety

What you need to know so that the P-Bit lasts and so that you read what it measures properly. It is an educational device, not a toy: recommended from age 14 and with adult supervision. It works without internet and without installing anything.

Before updating the firmware Note down your settings (language, limits, soil calibration): they are erased when you update.

Water and liquids

Warning
  • The P-Bit is not waterproof: do not submerge it or leave it out in the rain, and keep it away from steam.
  • If you work with water or other liquids, do not keep it connected to the computer: use batteries or an external battery pack.
  • The soil probe is pushed into the soil only as far as the marked line: its electronics must not get wet.
  • The tip of the Thermometer does go into the liquid, but its cable withstands up to 100 °C.

Batteries and power

Warning
  • The USB-C is for uploading programs from a computer, not for charging batteries.
  • It runs on 4 AAA batteries, which are not included. They can be rechargeable, but the P-Bit does not charge them: charge them separately.
  • Without batteries, an external battery pack through the USB-C works.
  • While asleep, the screen stays on. To save batteries, switch it off with the switch when you are not using it.
  • While the Timer is counting or a menu is open, it does not go to sleep.

How long they last depends on the type of batteries, their charge and how it is used. There is no laboratory-measured figure yet.

Probes

Warning
  • Connect and disconnect the probes with the P-Bit switched off.
  • The soil probe goes into port IO35 (red) and the Thermometer's into IO33 (black).
  • Calibrate the soil probe in air and in water so that its percentage is reliable (how to do it). Updating the firmware or doing a Full reset erases the calibration.
  • The ports accept Grove and Crowtail cables, but just because a sensor fits does not mean the P-Bit reads it: it has to be programmed (Programming it, Technical reference).

Heat, cleaning and storage

The casing is PLA+ (a 3D-printing plastic), the front is acrylic and inside there is unprotected electronics.

Warning
  • PLA+ softens with heat: do not leave it in the sun behind glass, inside a car or next to a radiator.
  • Switch it off before cleaning it.
  • No alcohol, acetone or solvents: they crack and cloud the acrylic.

Heat and sun

  • Use and store it between 0 and 40 °C. Its air sensor measures from 0 to 50 °C.
  • If it goes from cold to warm (for example, from the playground in winter into the classroom), wait a few minutes before switching it on: that way no condensation forms inside.

Cleaning

  • Casing and front: a soft, dry cloth, or barely damp with water. Never wet it directly or use a spray.
  • Acrylic scratches easily: no scouring pads or rough paper.
  • Soil probe: rinse with water only the part that goes into the ground and dry it; the top part, with the electronics, does not get wet.
  • Thermometer probe: rinse the steel tip and dry it with a cloth.

Storage

  • In a dry place, free of dust and with nothing heavy on top, preferably in its box.
  • If you are not going to use it for weeks, take the batteries out: if they corrode, they damage the contacts.
  • Store the probes clean and dry, with the cable coiled without bending or squeezing it. To unplug them, pull the connector, not the cable.
What it measures and what it does not
  • It is good for comparing and seeing changes, not as a laboratory instrument: air temperature ± 2 °C, air humidity ± 5 %, thermometer ± 0.5 °C (from −10 to 85 °C).
  • Light: these are lux estimated with a formula; it is not a calibrated light meter.
  • Sound: it is a level from 0 to 100 %, not decibels. It does not record or store sound.
  • It does not store measurements: the Curve view shows the last 2 min 40 s and is erased when you switch it off.
  • It measures what happens around it: if you move it, wait a moment before reading.

Next: Problems and questions. If something does not go as you expect →

Reference

Problems and questions

Look for what you see on the screen or what is happening to you. If it does not get solved, write to us at info@powarsteam.com.

Problems

On the screen

Soil says “Check IO35” or “No sensor”

Soil screen without the probe: No sensor, Check IO35

Why. The soil probe is not connected or its reading is not coming through.

What to do. Switch it off and connect the probe to port IO35, the red one.

The Thermometer says “Check IO33” or “No sensor”

Thermometer screen without the probe: No sensor, Check IO33

Why. The DS18B20 probe is not connected.

What to do. Switch it off and connect it to port IO33, the black one.

Plant Lab does not appear when I turn

Why. It only appears with the soil probe connected.

What to do. Connect the soil probe.

The Soil percentage does not add up

Why. The probe is not calibrated for your soil.

What to do. Calibrate it in air and in water.

Sound and LED

The LED goes off on Light

Why. It is on purpose: its light would distort the measurement.

What to do. Nothing: it is normal.

Nothing sounds

Why. Beep and Alarms come switched off.

What to do. Switch them on in System; for an alert, also Alerts on its sensor.

An alert beeped only once

Why. It sounds when the status changes, not non-stop.

What to do. Look at the Info view or the LED to see whether it is still on.

Sound never beeps

Why. So that it does not leak into the microphone.

What to do. Its alert shows in the Info view and the LED.

Using it

The wheel will not raise or lower a value any further

Why. You have reached the minimum or maximum of that setting.

What to do. Turn the other way.

It asks for the language and the settings have been erased

The P-Bit's screen: language selector

Why. The firmware was updated or a Full reset was done.

What to do. Set it up again.

A breathing ball with “ZZZ”

Sleep screen

Why. It is asleep.

What to do. Turn or press the wheel.

With the computer

The computer does not recognise the P-Bit

Why. It may be missing the driver for the USB chip (CH340).

What to do. Install the CH340 driver and try with the cable from the box.

Frequently asked questions

Do I need to know how to program?

No. It comes ready to use out of the box, all with the wheel. If later you want to go further, you can program it with P-Blocks, by dragging blocks (Programming it).

Does it need internet or anything installed?

No. The sensors, menus, alerts and Timer work offline and without installing anything.

Can it get wet?

No: it is not waterproof. The soil probe is pushed in only as far as its line; the Thermometer's tip does go into liquids, below 100 °C (Care and safety).

Does it store measurements?

No. The Curve view shows the last 2 min 40 s and is erased when you switch it off. To record data over a longer time, note it down in class.

What is demo mode and how do I leave it?

A display mode that cycles through screens by itself, with sample values. It is activated by holding the wheel pressed when you switch it on, or by holding it pressed on Home. To leave, turn or press: it goes back to the screen you were on.

You do not need it on this page's virtual P-Bit: move the values yourself with the “Environment” sliders.

Can I connect other sensors?

The IO32 (blue) and the three I2C (yellow) ports are free, and accept Grove and Crowtail cables. The factory firmware does not use them: a new sensor has to be programmed (Technical reference).

How long do the batteries last?

It depends on the type of batteries, whether they are new or freshly charged, and on use. It helps to switch it off with the switch when you finish. There is no laboratory-measured figure yet.

Still not working? Write to us at info@powarsteam.com and tell us what you see on the screen.

Next: Technical reference. Components, pins and ports →

Reference

Technical reference

For anyone who wants to know what is inside or program their own extensions. The screens in this guide are those of firmware 07f06f0.

Uploading a program: Programming it.

Components

The models come from the P-Bit v3 board's bill of materials. If a figure in this guide does not match the manufacturer's, the manufacturer's wins.

PartModelDocumentation
MicrocontrollerESP32-WROOM-32E-N4 module (Espressif), 4 MB of flashDatasheet
Screen1.8″ TFT, 160 × 128, ST7735 driver (Sitronix)Driver
Temperature and humidityDHT11 (Aosong)Product page ↗
LightGL5516 photoresistor (Senba)Product page ↗
MicrophoneGMI9767P electret (INGHAi), 9.7 mmProduct page ↗
Microphone amplifierLM358Datasheet
BuzzerPassive SEA-12095, 12 mm and 85 dBProduct page ↗
LED5 mm RGB XL-B504RGBC (XINGLIGHT), common anodeProduct page ↗
WheelEC11L1525G01 encoder with push button (Alps Alpine)Product page ↗
SwitchMK-12C02-G025 slide switchProduct page ↗
USBUSB-C connector and CH340E USB-serial chip (WCH)CH340E product page ↗
Soil probeCrowtail Capacitive Moisture V2.0 (Elecrow)Product page ↗
Temperature probeCrowtail One Wire Waterproof 2.0 (Elecrow), DS18B20 chip, 90 cm of cableProduct page ↗ · Chip
Power4 × AAA battery holder—

Pins

How each part connects to the ESP32, according to the board's schematic and the firmware.

PartESP32 pins
Wheel: turn A and B, push buttonGPIO14, GPIO12 and GPIO13
LED: red, green and blueGPIO5, GPIO17 and GPIO16 (PWM)
BuzzerGPIO18 (PWM)
Screen (SPI)MOSI GPIO19 · SCLK GPIO25 · CS GPIO23 · DC GPIO22 · RST GPIO21
Temperature and humidity (DHT11)GPIO4
Light (LDR)GPIO39
Sound (microphone)GPIO36
Port IO35 (red, soil)GPIO35
Port IO33 (black, thermometer)GPIO33
Port IO32 (blue, free)GPIO32. The factory firmware does not use it
I2C ports (yellow, ×3)SDA GPIO26 · SCL GPIO27, with 10 kΩ resistors to 3.3 V. The factory firmware does not use them

Ports

The six ports use the same 4-pin connector with a 2.0 mm pitch (HY2.0-4P). Grove cables and Crowtail probes fit.

Looking at the P-Bit from the front, the pins are in this order: GND, VCC, NC, signal on the red, black and blue ports, and GND, VCC, SDA, SCL on the yellow ones.

PinRed, black and blueYellow (I2C)
1GNDGND
2VCCVCC
3Not connectedSDA
4Signal (IO35, IO33 or IO32)SCL
  • VCC is not 3.3 V: it is the P-Bit's input supply (from the batteries or the USB), after the switch. The signals that reach the ESP32 are 3.3 V.
  • The signals of the five ports in use (IO32, IO33, IO35, SDA and SCL) have a protection diode.
  • Before connecting a Grove or Crowtail sensor, check:
    • which signal it uses (analogue, digital or I2C);
    • that it works with the VCC voltage;
    • that its signals are 3.3 V;
    • that its pins match this table.
    It fitting is not enough: it has to be programmed.

Next: What now? What comes next →

Next step

What now?

Choose what comes next, depending on what you are going to do with the P-Bit.

For your school

The P-Bit comes in four colours: cyan, magenta, green and yellow. Inside they are all the same.

  • Cyan P-Bit with the Home screen
    Cyan
  • Magenta P-Bit with the Climate Lab screen
    Magenta
  • Green P-Bit with the Sound VU screen
    Green
  • Yellow P-Bit with the Light Curve screen
    Yellow

And it comes in two boxes: of 1 or of 4 devices.

Open box of 4, with one P-Bit of each colour

Box of 1

One P-Bit in the colour you choose: cyan, magenta, green or yellow, subject to availability.

Box of 4

Four P-Bits, one of each colour, each with its soil sensor, its probe and its cable.

  • Each P-Bit comes with two probes (soil moisture and temperature) and a 1 m USB-C cable.
  • Each device needs 4 AAA batteries, which are not included.

Questions? Write to us at info@powarsteam.com.