HEART Embedded Systems logoHEART

Building a HEART-Embedded System: worked guides#

Reading tracks1 Basic2 Intermediate3 Advanced
Every track: pick the guide closest to your product. Which track am I?

Each guide takes one kind of product from day 1 to a HEART-embedded system, step by step, and marks what works today and what you would have to add yourself.

Built with the reference implementation#

GuideProductHow HEART runs
1. Air-conditioner controllerAn appliance with sensors and a compressorheartd beside the control firmware, on embedded Linux
2. Photo editing softwareA desktop or web applicationThe Core inside the app, as WebAssembly or a Rust library

Both use the reference implementation in heart-core-rs/. The examples they build are in heart-core-rs/examples/ac-controller and heart-core-rs/examples/photo-editor. Both pass heartd check, and both have been run.

Case studies with a simulator you can run#

Each has a simulator in its own folder: one Python file (standard library only) that you run on your own computer, register on HEART Hub with the claim code it prints, and watch on your own private page. Each folder's README.md covers running it, registering it, its staged faults, its local HEART API, how the code is built and what code to add for a real product, and its end-to-end test. All of them can also be watched live, with no download, under Demo simulated devices at heartcortex.ai/monitor/demos.

GuideProductSimulatorWhat it shows
3. Birdhouse cameraA camera in a nest boxbirdhouseSimulator/Adopted Playbooks zoom out for a crowd and in for eggs, inside an envelope; the infrared light needs a person
4. PacemakerAn implant and its home transmitterpacemakerSimulator/Monitoring only: HEART never touches pacing; a patient's condition is not a device fault
5. Smart thermostatA home heating thermostatthermostatSimulator/Every change is physical and waits for a person; an AI only suggests (A3)
6. Greenhouse irrigationPumps and valves for three zonesgreenhouseSimulator/The brain proposes, the heart decides: a Trial with one approval and automatic undo
7. Water pump stationTwo pumps run by a PLCpumpStationSimulator/Monitoring only: the PLC and its interlocks run the station
8. EV chargerA home charging pointevChargerSimulator/Monitoring only: the certified controller owns current and safety
9. 3D printerA desktop printerprinter3dSimulator/Monitoring only: the firmware owns heating and thermal-runaway protection
10. Online shop serverA web shop: software, not hardwareonlineShopSimulator/Self-healing Playbooks (A4); destructive actions always refused
11. Dog tracking collarA GPS collar on a dogdogCollarSimulator/Location never leaves for the monitor site; lost mode runs at once, the LED and buzzer need the owner's confirmation

The simulators are demonstrations only: not medical, industrial or safety equipment.

Watching your devices on your own server#

Do not wish to use heartcortex.ai? Run your own HEART Hub server: the same open code, on your own machine.