Project

# Title Team Members TA Documents Sponsor
49 Smart autochasing lamp
Feiyang Liu
Jincheng Yu
Yiyan Zhang
Luoyan Li design_document1.pdf
design_document2.pdf
final_paper1.pdf
other1.pptx
proposal2.pdf
proposal1.pdf
video
# **Team Members**

Feiyang Liu (feiyang5)

Yiyan Zhang (yiyanz3)

Jincheng Yu (jy54)


# **Problem**

When performing precise tasks on a desk, such as soldering or assembling LEGO, the position of the lamp can often be a source of frustration. Shadows cast by the hands can obscure the parts you're searching for, and tiny components in your hands may not be sufficiently illuminated, leading to discomfort and inefficiency. Furthermore, my ceiling light broke last week, and I've had to rely solely on a desk lamp for illumination. In such a dark environment, the brightness of the desk lamp is overwhelming and strains my eyes. There's a need for a desk lamp that can adjust its brightness and color temperature according to external light conditions. Additionally, the traditional ways of controlling desk lamps are inconvenient, often interrupting our workflow to make adjustments.

# **Solution**
We propose a smart desk lamp equipped with a camera and several servo motors forming a mechanical arm. This lamp can capture images and communicate with a computer for image processing. It can identify human hands and move the lamp closer and at an angle to the hands as they move, minimizing large shadows on the desk. Through a photoresistor, it can respond to changes in external light sources. The camera can also detect specific hand gestures, such as opening the thumb and forefinger to increase brightness or pinching them to decrease brightness. These gestures can also control the computer or play music, which I believe is simpler than voice input.

# **Subsystem**
## Mechanical Arm Subsystem:
Three servo motors and linear potentiometers ensure the basic movement of the mechanical arm, with additional circuits for these components. To avoid interference between light sources, a small aperture for the light-sensitive element will be located on the mechanical arm. This data is communicated to the central control subsystem.

## Lighting and Camera Subsystem:
The lighting bulb, adjustable in terms of color temperature and brightness, receives instructions from the central control system. A camera is positioned near the bulb for better target tracking. Captured information is sent to the central controller.
## Central Control Subsystem:
This system integrates the ESP32 module and necessary I/O modules. It needs to process images captured by the camera, determine how much each motor in the mechanical arm should move to track the bulb and be sensitive to specific gestures to adjust various parameters of the bulb. It can also communicate remotely with a computer to control specific programs.

# **Standard of Success**
When tracking mode is activated, the bulb moves to an appropriate position following the hand's movement.

As the ambient light changes, the bulb adjusts to the appropriate brightness and color temperature.

The lamp's switch and brightness can be adjusted through gestures.

Specific programs (like Spotify) can be opened on the computer through hand gestures.

Electronic Mouse (Cat Toy)

Jack Casey, Chuangy Zhang, Yingyu Zhang

Electronic Mouse (Cat Toy)

Featured Project

# Electronic Mouse (Cat Toy)

# Team Members:

- Yingyu Zhang (yzhan290)

- Chuangy Zhang (czhan30)

- Jack (John) Casey (jpcasey2)

# Problem Components:

Keeping up with the high energy drive of some cats can often be overwhelming for owners who often choose these pets because of their low maintenance compared to other animals. There is an increasing number of cats being used for service and emotional support animals, and with this, there is a need for an interactive cat toy with greater accessibility.

1. Get cats the enrichment they need

1. Get cats to chase the “mouse” around

1. Get cats fascinated by the “mouse”

1. Keep cats busy

1. Fulfill the need for cats’ hunting behaviors

1. Interactive fun between the cat and cat owner

1. Solve the shortcomings of electronic-remote-control-mouses that are out in the market

## Comparison with existing products

- Hexbug Mouse Robotic Cat Toy: Battery endurance is very low; For hard floors only

- GiGwi Interactive Cat Toy Mouse: Does not work on the carpet; Not sensitive to cat touch; Battery endurance is very low; Can't control remotely

# Solution

A remote-controlled cat toy is a solution that allows more cat owners to get interactive playtime with their pets. With our design, there will be no need to get low to the ground to adjust it often as it will go over most floor surfaces and in any direction with help from a strong motor and servos that won’t break from wall or cat impact. To prevent damage to household objects it will have IR sensors and accelerometers for use in self-driving modes. The toy will be run and powered by a Bluetooth microcontroller and a strong rechargeable battery to ensure playtime for hours.

## Subsystem 1 - Infrared(IR) Sensors & Accelerometer sensor

- IR sensors work with radar technology and they both emit and receive Infrared radiation. This kind of sensor has been used widely to detect nearby objects. We will use the IR sensors to detect if the mouse is surrounded by any obstacles.

- An accelerometer sensor measures the acceleration of any object in its rest frame. This kind of sensor has been used widely to capture the intensity of physical activities. We will use this sensor to detect if cats are playing with the mouse.

## Subsystem 2 - Microcontroller(ESP32)

- ESP32 is a dual-core microcontroller with integrated Wi-Fi and Bluetooth. This MCU has 520 KB of SRAM, 34 programmable GPIOs, 802.11 Wi-Fi, Bluetooth v4.2, and much more. This powerful microcontroller enables us to develop more powerful software and hardware and provides a lot of flexibility compared to ATMegaxxx.

Components(TBD):

- Product: [https://www.digikey.com/en/products/detail/espressif-systems/ESP32-WROOM-32/8544298](url)

- Datasheet: [http://esp32.net](url)

## Subsystem 3 - App

- We will develop an App that can remotely control the mouse.

1. Control the mouse to either move forward, backward, left, or right.

1. Turn on / off / flashing the LED eyes of the mouse

1. keep the cat owner informed about the battery level of the mouse

1. Change “modes”: (a). keep running randomly without stopping; (b). the cat activates the mouse; (c). runs in cycles(runs, stops, runs, stops…) intermittently (mouse hesitates to get cat’s curiosity up); (d). Turn OFF (completely)

## Subsystem 4 - Motors and Servo

- To enable maneuverability in all directions, we are planning to use 1 servo and 2 motors to drive the robotic mouse. The servo is used to control the direction of the mouse. Wheels will be directly mounted onto motors via hubs.

Components(TBD):

- Metal Gear Motors: [https://www.adafruit.com/product/3802](url)

- L9110H H-Bridge Motor Driver: [https://www.adafruit.com/product/4489](url)

## Subsystem 5 - Power Management

- We are planning to use a high capacity (5 Ah - 10 Ah), 3.7 volts lithium polymer battery to enable the long-last usage of the robotic mouse. Also, we are using the USB lithium polymer ion charging circuit to charge the battery.

Components(TBD):

- Lithium Polymer Ion Battery: [https://www.adafruit.com/product/5035](url)

- USB Lithium Polymer Ion Charger: [https://www.adafruit.com/product/259](url)

# Criterion for Success

1. Can go on tile, wood, AND carpet and alternate

1. Has a charge that lasts more than 10 min

1. Is maneuverable in all directions(not just forward and backward)

1. Can be controlled via remote (App)

1. Has a “cat-attractor”(feathers, string, ribbon, inner catnip, etc.) either attached to it or drags it behind (attractive appearance for cats)

1. Retains signal for at least 15 ft away

1. Eyes flash

1. Goes dormant when caught/touched by the cats (or when it bumps into something), reactivates (and changes direction) after a certain amount of time

1. all the “modes” worked as intended

Project Videos