IoT EIE568 Lab/Project Materials and References 2024 (updated on Oct 20)

    PolyU IoT EIE568 Lab Materials - 2024 Oct 15


(Click the photo to enlarge)

View from the bottom side. You can find the pin label names:


----- # Lab References # -----

-----

EIE MSc IoT laboratories before the start, you can:

Download the sensor board materials below: (purchased from Taobao / taobao.com 淘寶)

 Sensor_modules_(Taobao)(Google_drive)

Below you can find different sensors, actuators, or lab modules for EIE568 IoT Labs or mini-project.

Please return the RP2040 Connect Board to the lecturer (at the semester break or the end of the course subject (i.e. Nov - Dec 2024) (after the mini-project report is submitted)) - to be re-used in the next semester - please also note that this item is under US export control.

1) Arduino Nano RP2040 Connect (manufacturer part no. ABX00052) - Quick Start guide

Official website: https://docs.arduino.cc/hardware/nano-rp2040-connect

Built-in example program sources: https://docs.arduino.cc/built-in-examples/

Hardware Circuit (Arduino Nano RP2040 Connect Board): Schematics Local copy (click to open)


  • Please note that you will encounter compilation errors as shown below: "Compilation error: WiFiNINA.h: No such file or directory". To solve this error, you need to install the library of  the WiFi "WiFiNINA". In Arduino IDE, choose "Tools" > "Manage Libraries" (as shown below). Under the library manager, search "WiFiNINA" and click the "Install" button to install the library as shown.



  • More examples of Arduino Nano RP2040 Connect and the built-in WiFi can be found on the Arduino IDE as shown below: "File" > "Examples" (choose any from the examples under "Examples for Arduino Nano RP2040 Connect" or "Examples from custom libraries").
  • Embedded AI or Machine Learning Core (MLC) info (in Arduino Nano RP2040 Connect):
The LSM6DSOX Machine Learning Core (MLC) + Inertial Measurement Unit (IMU).
a) Tutorial 1 by ST MicroElectronics: https://youtu.be/hHVsLHqIN9g?si=-YcE4GF25GlzP99f

* Download the examples from GitHub (click here)

b) Tutorials by Coding ScientistLesson #5 Machine Learning IMU Libraries Nano RP2040 Connect; & Lesson #6 Machine Learing Projects Nano RP2040 ConnectDownload Project codes at GitHub 
c) Tutorial by Ardino website: MicroPython and the IMU Machine Learning Core (MLC) Features (using MLC for vibration monitoring) 


Arduino programming with Photoresistor module (4-pin module)

【优信电子】原装正品 光敏电阻传感器模块 光感应 智能车配件-淘宝网 (taobao.com)

Taobao Purchase link

Download Files:
 LDR_Sample_Source_Code.zip (608 Byte) Local Download link

Example Setup photos: (for labs)




Programming support of Arduino Nano RP2040 (ABX00053 / ABX00052):

 a) Arduino IDE: 2.3.x / 1.8.x / web-editor: C / C++ language 

- Please refer to the lab sheets.

 b) MicroPython: (no need to compile / flashing, No compilation / library compatibility errors) (Just run scripts)

  i) Official MicroPython reference website / Arduino website

 ii) Why MicroPython might be taking over Arduino IDE: 

  MicroPython Basics: What is MicroPython? (By Tony DiCola)

  Five 5 Advantages of Using Micro Python for Embedded Software Programming

  (YouTube video) Time to Say Goodbye to Arduino IDE and Go On to Micropython/ Adafruit Circuitpython?

- Eliminating the library/compiler installation or compiler-version-conflict problems with MicroPython / CircuitPython 

- Easier debugging (no need to compile & flash to debug - just type your command to debug)

Editing Tools: Ref  Arduino Website1Arduino Website2

  1. Thonny Editor
  2. Mu Editor
  3. OpenMV IDE

 c) OpenMV IDE: Python programming

Arduino Nano RP2040 Connect Board Pin assignment: (ABX00052 / ABX00053)

Python on the Arduino NANO RP2040 with MicroPython: https://www.youtube.com/watch?v=m3dO5VxUXvY
----- ----- ----- ----- -----
----- ----- ----- ----- -----

Simulators

1) Simulate with wokwi.com: https://wokwi.com/: with popular MCUs: arduino, esp32, pico RP2040, Stm32, and supporting language: Rust, MicroPython



2) AutoDesk TinkerCAD (owned by autoCAD's company) https://www.tinkercad.com/circuits

----- ----- ----- ----- -----
----- ----- ----- ----- -----

Sensors & Actuators

They are probably available in the PolyU EEE IoT hardware labs: (first come first serve)

1) Buzzer modules (鸣器模块) https://item.taobao.com/item.htm?_u=iodb0t204a6&id=45312865305  

Please note that some buzzers can work with AC or periodic pulse signals only (not DC signals).


Please use the buzzer module with source (easier uses, no need of high-frequency pulses).

Ref code: https://esp32io.com/tutorials/esp32-button-piezo-buzzer   http://pan.baidu.com/s/1hqByZty

Tact switch circuits: (need pull-up resistor and serial protection resistor)

e.g. 


The source means the sound vibrating sources. In case you are using the non-source buzzer module, you need to generate 2k to 5k high-frequency pulses. So it is recommended to use the buzzer module with source (有源蜂鸣器模块)

-----     -----      -----

2) Photoresistor-1 module KY-018 (光敏电阻模块)  

 https://pan.baidu.com/s/1VMFN1fVo5jxB80IYTsY67A   (password:   y8jw) - please download test program in Google drive

3) RGB Led tri-color module (三色LED模块)  
By applying analog voltages on R = Red, G = Green, B = Blue to display the LED in different colors.
With built-in small resistors on board, it is safer and more compact to use this than using external resistor network (better safety & small size).
4) Microphone module (声音传感器模块)      sound sensor

5)   Laser distance-measuring module GY-530 VL53L0X (激光测距传感器)     
https://item.taobao.com/item.htm?_u=kodb0t20541&id=551955373190   http://pan.baidu.com/s/1dEPYrIh


6) 0.96-inch OLED LCD display (黄蓝双色 OLED晶屏模块)       
Using I2C bus
Ref: https://pan.baidu.com/s/13_WpuJZDb_K2oH_yewQhYw 提取码: 2frr


7) Ultrasound module new-version HC-SR04 (超声波测距传感器) 
      Note that we have different versions. Check below info from Taobao:

Taobao Ultrasound modules (it should support 3.3V) - RP2040 needs to solder a resistor to provide 5V, thus the low-voltage version or 3.3V version is preferred.


8)   DHT11 Humidity sensor modules (温湿度传感器模块)        


Ref: http://pan.baidu.com/share/link?shareid=388339&uk=322357029    ;      Google drive sample codes/info
Soil moisture sensors: (resistive type (left) vs  capacitive type (right))
Non-contact-type water-level sensing/detection module:   



-----      ------     ------


9) Tilt sensor   SW520D       
Info Baidu downloads     Taobao buys link

Vibration Sensor (Piezoelectric Sensor): taobao link压电片 敲击 振动 震动传感器 开关模块 
10)  CO  Sensors MQ9     https://pan.baidu.com/s/1LwI4qv5tGeCaIwXHcDAvdA (password: 4mf4)    MQ sensors
11) Infra-red sensor and transmitter control kit     HX1838            
http://yunpan.taobao.com/s/22FE8RH5PtK    ;     IR remote control

Infra-Red Flame Sensor, using photo-transistor:




12) PIR Motion Detector/Sensor:

 3.3V-version SR602 (smaller and lower power consumption)
 



5V-version HC-SR501   


----- Below sensors are with few quantities only -----

13) Human Radars (advanced sensors): (few available)
a) mmWave 24GHz Sensor Demo: Human Detection and Range / Distance Measurement


Purchase order number: 1962051135431293492 (on 31-Aug-2023)




b) mmWave 24GHz Sensor Demo: Human Detection and Range Measure 毫米波雷達傳感器演示:人體檢測和距離測量


Purchase order number: 1962051135431293492 (on 31-Aug-2023)



c) Texas Instrument IWR6843AOPEVMti.com mmWave Human Radars (TI also has industrial radars)



14) Camera Modules
Actually, it is difficult and not recommended to add a camera for Arduino Nano RP2040, because of a lot of wire connections to troubleshoot, although it is still possible, using SPI or parallel bus.
a) Reference project: ECE4760 final-year project: rp2040 Camera



b) OV7670 camera used with RP2040

15) Additional Communication Modules
15a) NB-IoT Wireless Communication Modules (supporting MQTT, TCP, UDP, CoAP, etc)

NB-IoT service is available for only commercial customers in Hong Kong but we have sim cards that can be borrowed (quantity: ~ 50 units). We have some test programs and lab materials using BC28 / BC35 modules. One of the advantages is its low power and to access Internet without WiFi, especially in the outdoor area.
Please feel free to come to contact our technical staff (Patrick) in office hours.


15b) 4G / 5G Wireless Communication Modules 
e.g. 4G module from 01Studio:


To find the location (like GPS) and access the Internet.     YouTube demo videos

With Camera modules: MicroPython boards and custom-made AI (not using chatGPT)

5G Wireless module: RM500U5G (note: very high power consumption. Good to use low-power NB-IoT modules)


----- ----- ----- ----- -----

Popular Sensor/Electronics Suppliers

You can also try to find many sensors in Taobao and online shops in Hong Kong, Sham Shui Po:
(declaration: we have no conflict of interest with all these shops)

1) Sun Cheong Computer Co. Ltd.: https://scccltd.com/ 新昌電腦有限公司, with Arduino boards and sensors / actuators (in Sham Shui Po):
Address: G/F 246 ApLiu Street, Sham Shui Po, Kowloon (MTR Station Exit C2 turn right) 深水埗鴨寮街246號地下
Phone: 2958 0678 (opening hours: 11 am to 8 pm) (the shop closed sharply at 8 pm, so please remember to go earlier!)







MQTT free website: http://www.tongxinmao.com/txm/webmqtt.php#collapseOne

2) WECL Online 華輝 (in Sham Shui Po)


4) Carousell HK  

5) eBay / Amazon

EEE EIE568 IoT Lab > more info at the PolyU Blackboard

留言

這個網誌中的熱門文章

IoT EIE568 Lab / Mini-Project Materials and References 2025 (updated on Feb 05)

IoT EIE568 Lab / Mini-Project Materials and References 2024 (updated on Nov 10)