Things used in this project

Hardware components:
475267 240424 01 front zoom kankcmvqdh
Raspberry Pi Zero Wireless
×1
Software apps and online services:
Particle CLI
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)

Code

Retrive CPU TemperatureC/C++
# include "Particle.h"

int getTempC(String args)
{
  Process proc = Process::run("vcgencmd measure_temp");
  proc.wait(); // The output is temp=43.5'C, so read past the = and parse the number
  proc.out().find("=");
  float cpuTemp = proc.out().parseFloat();
  Particle.publish("cpu-temp", String(cpuTemp));
  return 0;
}

void setup()
{
  Particle.function("getTempC", getTempC);
}

void loop()
{
  // Nothing in the loop
} 
Wi-Fi ConfigurationPlain text
network={
    ssid="MyWiFiNetwork"
    psk="the_password"
    key_mgmt=WPA-PSK
}

Credits

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Pi Zero Speaker - DIY Audio HAT and Audio Player
Intermediate
  • 328
  • 6

Work in progress

Convert an old speaker into something cool powered by Pi Zero.

Real-Time Workspace Occupancy Sensing Based on AWS IoT
Intermediate
  • 330
  • 5

Sensor-based presence detection for individual workstations: capturing occupancy trends and space utilization in real-time.

Smart Conductive 'On Air' Sign!
Intermediate
  • 558
  • 9

Full instructions

Raspberry Pi + Bare Conductive Paint + Pi Cap + RGB LEDs = AWESOME CONDUCTIVE SIGN!

CNC Controller in Python
Intermediate
  • 254
  • 4

Full instructions

First ever CNC machine controller implementation in pure Python.

 Scratch 2.0 KittenBot Extension for Raspberry Pi 3 B+
Intermediate
  • 293
  • 4

Full instructions

In this project we demonstrate how to create a Scratch2.0 KittenBot extension for Raspberry Pi 3 to control external hardware.

AWS IoT Environment for Home Assistant
Intermediate
  • 537
  • 4

Work in progress

Home Assistant is an automation platform that can track and control all kinds of devices and automate actions, which fits well with AWS IoT.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login