Skip to content

Latest commit

 

History

History
57 lines (53 loc) · 2.33 KB

README.md

File metadata and controls

57 lines (53 loc) · 2.33 KB

My-Pet-Arduino

Gameplay

  • GIF:
    IMG_1271

My-Pet-Arduino Project!

  • Turn your Arduino into a friendly pet.
  • This project was built with the Arduino Nano 33 BLE Sense Board.
  • Entry for the Tensorflow Lite for Microcontrollers Challenge.

How to use:

  1. Get the Materials:
  • An Arduino Nano 33 BLE Sense Board
  • A power supply for the Arduino
  • A device with Google Chrome and Bluetooth enabled
  • A computer with Arduino IDE
  • (Or one device which has Google Chrome, Bluetooth enabled, and Arduino IDE)
  1. Set up:
  • Open the Arduino IDE and download:
  • Arduino_TensorFlowLite Version 2.4.0-ALPHA Library
  • ArduinoBLE Version 1.2.1 Library
  • Arduino_LSM9DS1 Version 1.1.0 Library
  • Arduino Mbed OS Nano Boards Version 2.2.0 in the Boards Manager
  1. Flash the code to the Arduino:
  • Download the Arduino folder from this repository, and open it in the Arduino IDE.
  • Connect the Arduino to a computer and make sure the correct board and port is selected.
  • Upload main.ino to the Arduino Board.
  • The code should be running on the Arduino now.
  1. Interact with the website:
  • On google chrome, go to the link: 3LucasZ.github.io/My-Pet-Arduino/HTML/index.html

How to play:

  1. About:
  • The Arduino is your new pet! Take care of it well by giving it food, play, cleaning, and sleep. If it is neglected too much, it will disconnect and be very sad.
  1. Connect to the Arduino with BLE:
  • Click the connect button on the top
  • Select your Arduino
  • Press pair
  1. Take care of the Arduino:
  • Feed GIF:
    IMG_1261
  • Play GIF:
    Hnet com-image 2
  • Clean GIF:
    Hnet com-image 3
  • Sleep GIF:
    Hnet com-image 5

Technologies used:

  1. Website
  • HTML, Javascript, CSS
  • Bootstrap, p5.ble.js
  1. Machine Learning
  • Model and much of the inference code trained and created using tiny-motion-trainer
  1. Bluetooth Low Energy
  2. Hardware
  • Arduino Nano 33 BLE Sense