This is an old revision of the document!
Multifunction Device STANESCU-FLOREA David-Ioan
Introduction
Short presentation of the project:
Measures the atmospheric temperature around the device, acts as a proximity detector(Sonar Ranger), can be used as a potentiometer and has both a stopwatch function and a 24h Clock function.
This device isn't focused on solely doing one thing - just as a multimeter - can have different uses in different scenarios ; and it's main advantage is the modulation - can be added or swapped any kind of function
As mentioned before, having a multifunctional device is an advantage in an uncertain situation - so, I wanted to create a device with multiple uses
General Description
Hardware Design
Modules & Pieces:
Multifunction Shield
Arduino Uno R3
HC SR04 Sonar Module
LM35 Temperature Sensor
3 Resistors
3 LEDs
Colored Wires
Project Design (without the Multifunction shield *not found on Tinkercad)
Software Design
Firmware Description:
Arduino IDE
MultiFuncShield Library, Timer1, Wire
for each mode there will be a separate function which on button press, it will reset (if already in a mode) or change to the assigned mode (if in neutral mode)
Sources: Hackatonics ; implemented functions: startFunc(), temp(), potentiometer(), sonar(), stopwatch(), alarmClock(), displayTime(), clockISR() ;
Obtained Results
The project works as intended - with selectable modes, with multiple functions and modular:
Button 1: Temperature Mode
Button 2: Potentiometer Mode (it is also used as a bridge between the modes that must be Long-Pressed)
Button 3: Sonar Mode (or Proximity Sensor/Parking Sensor Mode)
Button 1 Long-Pressed: Stopwatch Mode
Button 2 Long-Pressed: Alarm-Clock Mode
Conclusions
This project was thought to be much like a multimeter - modular and with many uses.
Download
Journal
User's Manual:
Connect the Arduino through the USB port using a computer or using the 5V special socket.
Please do research before using the special powering socket because you might connect an improper PSU and risk to damage irreparably the device and its components
After the device has power, on the display will appear a message: “HI […] Lets Code” ; you will also see the Red LED turn on, then the Yellow LED
When the device is ready to use, only the Green LED will be turned on and you will hear a beep (after a short delay, the Green LED will turn off)
Bibliography/Resources