Idea1 (a Playback Counting Board for YouTubers. After the video playback reaches a specific value 1000, the YouTube acrylic panel light on the desktop will be turned on) possible code:
void loop() { if (playbackCount >= 1000) { digitalWrite(ledPin, HIGH); // Turn on the LED when playback count reaches 1000 } else { digitalWrite(ledPin, LOW); // Turn off the LED if playback count is less than 1000 } }
void connectToWiFi() { WiFi.begin(ssid, password); Serial.print(“Connecting to WiFi”);
while (WiFi.status() != WL_CONNECTED) { delay(1000); Serial.print(“.”); }
Serial.println(“\nConnected to WiFi”); }
In this code:
The button is connected to pin D2 and set up with a pull-up resistor.
The LED is connected to pin D3.
The playbackCount is a counter that increments when the button is pressed (interrupt triggered).
The LED will turn on when the playback count reaches 1000.
The ESP8266 connects to the WiFi network using the provided credentials.
Idea4 (a Divinationcrystal ball. When your hand is close to the crystal ball for a period of time, the heat sensor will sense the heat and will light up the built-in LED lights):
Possible code:
const int heatSensorPin = A0; // Connect the heat sensor to analog pin A0 const int ledPin = 13; // Built-in LED on most Arduino boards
const int heatThreshold = 300; // Adjust this value based on your sensor and environment
if (heatValue > heatThreshold) { // If heat is detected, turn on the LED digitalWrite(ledPin, HIGH); } else { // If no heat is detected, turn off the LED digitalWrite(ledPin, LOW); }
BOM: I’m uncertain about which option to choose for the final project, but after considering the latest sketch, the transparent headphone has become my preferred choice. Therefore, I intend to create a 3D model of its exterior components and incorporate features such as LED strips and speakers.
Task Completion Button More specifically, a medication dispenser that sends notification via text that the person has taken their am/pm dose. This is inspired by taking care of an elderly woman and needing reassurance she has taken her pills. She is not tech savvy so a button that sends automated confirmation to her caregivers would be handy!
Sip Counter I know I’m not the only one who 1) drinks a lot of coffee and 2) forgets to balance with water. This sip counter will keep me aware of my caffeine vs. water consumption! Design 1: smart coaster Design 2: smart scale
An ultrasonic sensor will record the activities and upload them to your phone.
If the user interacts less than 10 times, they will receive a warning message.
Concept 2: Desk game
Use the phone to control the soccer ball.
Concept 3: Kick this button
Record the laptop or the phone’s click times and send them to Ax. Ax will “kill” the control button.
11.14 Process
Javascript game combine with physical game
Create a mobile game:
Choose a Game Development Platform:
Select a game development platform that suits your skill level and requirements. For example, Unity is a popular and powerful game development engine that supports cross-platform development.
Learn Game Development Basics:
Acquire knowledge about basic concepts such as game design, scene creation, and character control.
Create Game Scene:
Utilize game development tools to create a simple game scene and implement functionalities for controlling the character.
Design User Interface (UI):
Add a virtual joystick, buttons, or other UI elements for control, which will be used for communication with the ESP8266.
Write Game Logic:
Develop game logic, including the part that involves communication with the ESP8266. Here, you’ll need to define control commands and their corresponding actions.
Export the Game:
Export the game as an application suitable for your target platform (iOS, Android, etc.).
ESP8266 Communication:
Connect ESP8266 to WiFi network:
Use the WiFi library of ESP8266 to connect it to a WiFi network. You will need to provide the WiFi SSID and password.
Create WebSocket Server:
Utilize the WebSocket library of ESP8266 to create a WebSocket server that listens for control signals from the mobile game.
Write Code to Handle Control Signals:
Write code on ESP8266 to handle control signals received from the WebSocket. These signals will instruct the ESP8266 on how to move servos or perform other actions.
Communicate with Mobile Game:
In the mobile game, use a WebSocket library or other network libraries to send control signals to the WebSocket server on ESP8266.
Test:
Test the entire system, ensuring that control commands from the mobile game are correctly sent to ESP8266, and ESP8266 can accurately interpret and execute the corresponding actions.
Debug and Optimize:
If there are any delays or communication issues, debug and perform necessary optimizations.
JavaScript
ESP8266 code
const char *ssid = “WiFiSSID”; const char *password = “WiFiPassword”; const int webSocketPort = 81; const int buttonPin = 2; const int servoPin = 5;
WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(1000); Serial.println(“Connecting to WiFi…”); } Serial.println(“Connected to WiFi”);
Through the connection of Arduino LEDs and Arduino sensor, when people blow on the product, the light will go out!
Idea 2
This is a design that connects physical and digital products. Through the interaction of the LEDs and the Arduino sensor, the object on the screen can be moved or produce unexpected changes.
Designed to create an atmosphere and enhance the home experience!
Idea 3
This design achieves the roller coaster effect by changing the color of the Arduino Neo Pixel strips!!!
One concept I’m considering is a memory-infused lamp. My vision involves adorning the lamp with repurposed or printed film rolls to allow the light to illuminate the images, offering users a unique perspective on their photographs. I previously crafted a lamp using my old film rolls during my high school years (노 don’t have a picture of it), and now I aspire to revisit this project with my enhanced skills.
My next concept is a magnetic speaker with a built-in glow! I’m really excited about the idea of merging my coding skills to control the LED lighting and the audio system. Nowadays, most speakers are just plain and unexciting, both in their shape and functionality. I’ve come up with a fun concept that breaks the mold both in terms of design and function.
My final idea also revolves around an audio system. It incorporates a transparent outer casing to showcase the inner components, and LED strips on the headband section for illumination. To be honest, this idea is my personal favorite among all, but I have some concerns about the assembly of all the required components.