---
# System prepended metadata

title: Getting started with microcontrollers and Google Cloud IoT Core - Gautier Mechling
tags: [DevFest2019]

---

Getting started with microcontrollers and Google Cloud IoT Core - Gautier Mechling
===



> 請從這裡開始
> 

## Where to buy
 - [Aliexpress](https://www.aliexpress.com)
 - [esp8266](https://www.aliexpress.com/wholesale?SearchText=wemos+d1+mini)
 - [esp32](https://www.aliexpress.com/wholesale?SearchText=doit+esp32)

The ESP32 was used during the talk.


## Programming languages and IDEs:

- C, C++ (esp-idf)
- **Arduino C**
    - **Arduino IDE**
    - PlatformIO IDE for VSCode
- Python (MicroPython)
- Javascript (Mongoose OS)
- Lua (NodeMCU)


## Temperature sensor

The temperature sensor used is a BME280, connected to the ESP32 using $I^2C$

```
#include <Adafruit_BME280.h>

Adafruit_BME280 bme;

void setup() {
  Serial.begin(9600);

  if (!bme.begin()) {
    Serial.println("BME280 not found!");
    while (1);
  }
}

void loop() {
  Serial.print("Temperature = ");
  Serial.print(bme.readTemperature());
  Serial.println(" *C");

  Serial.print("Humidity = ");
  Serial.print(bme.readHumidity());
  Serial.println(" %");

  Serial.println();

  delay(1000);
}
```

![](https://i.imgur.com/nb2vfup.jpg)


## Useful links

Link to articles: [Nilhcem.com](http://nilhcem.com/)
Cloud IoT Core: [Cloud IoT Core](https://cloud.google.com/iot-core/)
Cloud IoT Core JWT library for Arduino: [Cloud IoT Core JWT Arduino](https://github.com/GoogleCloudPlatform/google-cloud-iot-arduino)
Tool for schematics / PCBs: [Fritzing](https://fritzing.org/home/)
Online service to print PCBs: [PCBWay](https://www.pcbway.com)
Tool to modelize in 3D: [Fusion 360](https://www.autodesk.com/products/fusion-360/overview)

###### tags: `DevFest2019`
