Difference between revisions of "UBISS2024"
Line 1: | Line 1: | ||
− | = | + | = Tasks = |
+ | |||
+ | == Task 1: connect a Arduino Nano ESP32 board == | ||
+ | * connect the board | ||
+ | * control the internal RGB LED | ||
+ | |||
+ | |||
+ | == Task 2: connect a Arduino Nano Connect RP2040 == | ||
+ | * connect the board | ||
+ | * read the accelerometer and the gyro and show it in the notebook | ||
+ | |||
+ | === Task 2.1: is it moved? === | ||
+ | * read acceleration and gyro | ||
+ | * calculate the differences between values | ||
+ | * show an ouput when it is move | ||
+ | * create a file on the device that logs, when it is moved | ||
+ | |||
+ | === Task 2.2: it was turned upside down? === | ||
+ | * read acceleration and gyro | ||
+ | * make a rule based "AI" that records | ||
+ | ** it was put upside down | ||
+ | ** it was turned 360 | ||
+ | ** it was moved "quickly" | ||
+ | |||
+ | == Task 3: ML on Arduino Nano Connect RP2040 == | ||
+ | * use https://github.com/eloquentarduino/everywhereml to detect the same gestures as in 2.2 | ||
+ | |||
+ | == Task 4: connect both boards to WIFI == | ||
+ | * connect both boards to WIFI using [[Tutorial_Network]] | ||
+ | * use the Arduino Nano ESP32 as output (showing a color) | ||
+ | * use the Arduino Nano Connect RP2040 as input (recognize with rules 3 gestures) | ||
+ | |||
+ | |||
+ | = Links = | ||
== Micropython Basics == | == Micropython Basics == | ||
Line 77: | Line 110: | ||
C:\Users\ru42qak\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\jupyterlab>python -m notebook | C:\Users\ru42qak\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\jupyterlab>python -m notebook | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 00:37, 23 May 2024
Contents
Tasks
Task 1: connect a Arduino Nano ESP32 board
- connect the board
- control the internal RGB LED
Task 2: connect a Arduino Nano Connect RP2040
- connect the board
- read the accelerometer and the gyro and show it in the notebook
Task 2.1: is it moved?
- read acceleration and gyro
- calculate the differences between values
- show an ouput when it is move
- create a file on the device that logs, when it is moved
Task 2.2: it was turned upside down?
- read acceleration and gyro
- make a rule based "AI" that records
- it was put upside down
- it was turned 360
- it was moved "quickly"
Task 3: ML on Arduino Nano Connect RP2040
- use https://github.com/eloquentarduino/everywhereml to detect the same gestures as in 2.2
Task 4: connect both boards to WIFI
- connect both boards to WIFI using Tutorial_Network
- use the Arduino Nano ESP32 as output (showing a color)
- use the Arduino Nano Connect RP2040 as input (recognize with rules 3 gestures)
Links
Micropython Basics
https://docs.arduino.cc/micropython/#micropython-101 https://docs.arduino.cc/micropython/basics/board-examples/ https://www.codemotion.com/magazine/backend/getting-started-with-micropython-on-arduino-nano-rp2040-connect/ https://www.penguintutor.com/programming/arduino-python https://micropython.org/ https://docs.arduino.cc/micropython/micropython-course/course/installation/ https://docs.arduino.cc/micropython/micropython-course/course/examples/ https://wellys.com/posts/rp2040_micropython_1/ https://micropython.org/download/RPI_PICO_W/
Python / Jupyter Notebooks for Hardware
https://www.sketching-with-hardware.org/wiki/Jupyter https://towardsdatascience.com/micropython-on-esp-using-jupyter-6f366ff5ed9 https://www.datacamp.com/tutorial/markdown-in-jupyter-notebook https://saturncloud.io/blog/how-to-import-python-file-as-module-in-jupyter-notebook/ https://jupyter.org/install https://www.geeksforgeeks.org/install-jupyter-notebook-in-windows
Development environments
https://labs.arduino.cc/en/labs/micropython https://labs.arduino.cc/en/labs/micropython-installer https://www.arduino.cc/en/software
Libraries
https://github.com/jposada202020/MicroPython_LSM6DSOX
Data sheets and resources
https://micropython.org/download/ARDUINO_NANO_RP2040_CONNECT/ https://docs.arduino.cc/resources/pinouts/ABX00083-full-pinout.pdf
Tutorials
https://docs.arduino.cc/tutorials/nano-rp2040-connect/rp2040-openmv-setup/ https://docs.arduino.cc/tutorials/nano-rp2040-connect/rp2040-data-logger/
Machine Learning Basics
https://github.com/eloquentarduino/everywhereml https://scikit-learn.org/stable/auto_examples/datasets/plot_iris_dataset.html https://www.linkedin.com/pulse/arduino-truly-tiny-machine-learning-simone-salerno https://eloquentarduino.com/posts/micropython-machine-learning https://github.com/mocleiri/tensorflow-micropython-examples https://dev.to/tkeyo/tinyml-machine-learning-on-esp32-with-micropython-38a6
Networking Basics
https://docs.arduino.cc/tutorials/nano-rp2040-connect/rp2040-ap-web-server-rgb/ https://docs.micropython.org/en/latest/library/socket.html
Local Links
https://ubicomp.net/sw/db1/var2db.php? http://localhost:8888/notebooks/ArduinoNanoRP2040_v01.ipynb http://localhost:8888/doc/tree/create-ML-model01.ipynb
Random Commands
pip install micropython-lsm6dsox
picotool.exe load -x C:\Users\ru42qak\AppData\Roaming\OpenMV\openmvide\firmware\ARDUINO_NANO_RP2040_CONNECT\firmware.bin
pip install jupyterlab
pip install everywhereml
python -m pip install jupyter
git clone https://github.com/goatchurchprime/jupyter_micropython_kernel.git
pip install -e jupyter_micropython_kernel
python -m notebook
python -m jupyter kernelspec list
C:\Users\ru42qak\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\jupyterlab>pip install -e jupyter_micropython_kernel
C:\Users\ru42qak\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\jupyterlab>python -m notebook