Skip to content

bokunimowakaru/pico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pico

This repository "Wireless Communication Code Examples for Raspberry Pi Pico W, by bokunimo.net" is a collection of the code examples.
It includes MicroPython code for the micro IoT sensor devices which send sensor values via UDP and a micro LCD device which receives from them to display the sensor values on it.

ボクにもわかる μIoT for Raspberry Pi Pico W

MicroPython を使った Raspberry Pi Pico W の学習用サンプル・プログラム集です。

Raspberry Pi Pico W

  • example01_hello.py
    LED Control Example Code for Learning MicroPython
    Raspberry Pi Pico W の動作確認 Lチカ+ログ出力表示
  • example02_temp.py
    Get Value of Internal CPU Temperature Sensor
    温度を測定してシリアルモニタに表示
  • example03_temp_udp.py
    Micro IoT Transmitter for Temperature Sensor
    μIoT 温度計; 温度をUDPで送信
  • example04_hum_udp.py
    Micro IoT Transmitter for Humidity Sensor
    μIoT 温湿度計; 温度と湿度をUDPで送信
  • example05_lcd_udp.py
    Micro IoT LCD Monitor for Micro IoT Sensors
    UDPを受信してLCDに表示
  • example05_lcd_udp_pg.py
    Added Ping Function to example05_lcd_udp
    UDPを受信してLCDに表示(Ping併用版)
  • example06_temp_ambi.py
    Micro IoT Transmitter using HTTP Client
    温度値を Ambient に送信

bokunimo.net Blog Site

The picture below is a example of a micro IoT sensor on a breadboard.

μIoT 温湿度計

Following picture is the receiver for the above board.

μIoT LCD

The sensor values which send from the micro IoT Sensors are displayed on the LCD.

CSVxUDP

A communication protocol CSVxUDP is used for them. If your LCD device cannot recieve UDP packets, it might be discarded by your Wi-Fi router. In this case, please try to use "example05_lcd_udp_pg.py".
Or if there are someting wrong in the broadcasted UDP behaviors, use unicast address such as "192.168.1.1" for transmitter side of example03_temp_udp.py and example04_hum_udp.py.


関連書籍

本稿の基となる MicroPython 用プログラムは、「Pythonで作るIoTシステム プログラム・サンプル集 (CQ出版社)」の第8章~第9章で解説しています(執筆時点で未発売だったPico Wの記事はありません)。

CQ出版社の販売サイト:

Pythonで作るIoTシステム プログラム・サンプル集
https://shop.cqpub.co.jp/hanbai/books/MTR/MTRZ202112.html

  • 上記の販売サイトに目次などが紹介されています。
  • クレジットカード支払いの場合、送料無料です。
  • The Book Written in Japanese Language

筆者サポートサイト:

Pythonで作るIoTシステム プログラム・サンプル集
https://bokunimo.net/iot/cq/


GitHub Pages (This Document)


git.bokunimo.com GitHub Pages site

http://git.bokunimo.com/