# Cling-E, in depth

Team Togepi: Caroline Graham (mechanical engineering), Katherine Han (electrical engineering), Darshon Singh (electrical and computer engineering). Rice engineering design study abroad, Tokyo, May to June 2025. Built in about one week with an ELEGOO starter kit and parts from Akihabara. Now on display at Rice's OEDK makerspace.

Original build log with photos, videos and code: https://rice.digication.com/darshon-singh-1/cling-e

## The idea
Cling-E is a smart cart that, like the name says, is clingy. It drives to wherever you are and stays within a range you set. It avoids objects in its way. It has separation anxiety: if you get too far, it complains. If a stranger grabs it, it screams. Beyond luggage, it's meant for older people carrying groceries, cane and wheelchair users, and blind or visually impaired people who need both hands free.

Three goals: convenient, secure, accessible.

## How it was built
1. Base. A hexagon, because three omni wheels need to be evenly spaced, cut from cardboard with 3 cm walls so things don't fall out. Omni wheels roll freely sideways without skidding, so the cart can move in any direction. No store online sold wheels that small, so the team found a robot store in Akihabara: three wheels with shaft connectors at 1,870 yen each.
2. Direction sensing. One IR receiver on each of the six sides; the user carries the IR emitter, and the cart moves toward whichever receiver fires.
3. The first IR problem. The test remote sprayed IR so widely that all six receivers fired at once. They tried shielding each receiver with a straw, a cardboard box and a wrapped straw; triangular cardboard baffles worked best, plus electrical tape on the remote to narrow its beam. A cardboard lid also blocked stray signals.
4. Motors. The kit's DC motor spun fast but had too little torque to move the cart on the floor. The stepper motor had the torque but was far too slow. They went back to Akihabara and bought motors made for their omni wheels, which worked with the L293D motor drivers from class.
5. Moving in six directions with three wheels. Spin two wheels in opposite directions and their sideways components cancel while their forward components add. Each of the six directions maps to one IR receiver.
6. Distance. IR gives direction but not distance. First plan: two ultrasonic sensors on a servo that turns toward the receiver that fired. The final version used six ultrasonic sensors, one per side.
7. Second prototype at 80% size, with a double-layer base so the wheels didn't bend it, and the IR receivers moved inside the hexagon so they wouldn't catch on things.
8. Automatic emitter. Pressing a remote button by hand wasn't "following". They opened the remote, soldered two pins across the button contacts, and wired in a tilt-ball switch, so walking with it on your body sends the signal on its own. This became a wearable tracker that can also clip to a wheelchair.
9. Personality and security. Three MAX7219 LED matrices make two eyes and a mouth (the idea came from Japanese culture's love of personified objects). An MPU-6050 accelerometer on the lid detects a fast lift and triggers an angry face and a buzzer. An RFID tag toggles locked and unlocked mode, with a red LED showing locked. It also winks every few seconds.
10. Final test: it moves toward the user whenever they are farther than 30 cm and stops inside that range.

Darshon worked on the sensing system (the 6 IR receivers and 6 ultrasonic sensors) and wrote his own code for it. He also cut a feature, recording IR signals, before the demo because it wasn't working cleanly.

## What they would do next
- More power: the motors were slow because of current, not the motors themselves. A bigger battery would also make it fully wireless.
- Better security: a louder buzzer, auto lock and unlock based on distance like a car key, a wearable that vibrates if you walk too far away, and a tracker inside.
- True 360-degree movement and going around obstacles instead of stopping. Both need direction and distance without line of sight, for example Bluetooth instead of IR.
