Introduction: Request Uber Rides With an Arduino Button
If you use uber alot like me so this instructable will make your life better.I have only three pickup locations: home , work and the local fablab address :D .
That's why i made this button. I have one at home and another at work ,before leaving i press the button and wait for the driver to arrive.
Step 1: Tools and Components
Electronic components :
- Arduino Mega 2560
- Big rounded push button
- 2x seven segment
- Lcd 2x16
- Usb cable
- Pcb (i like the through hole type).
- 15x 330 ohm resistors
- small breadboard (for testing purpose)
- wires and jumpers
- 3mm plywood
- Soldering iron
- Solder paste
- wire stripper
- pcb third-hand holder
- double tape
Step 2: Uber Box
If you use normal sized lcd 2x16 (70x25 mm), small seven segments (12.5x19mm each) and Big button with 30mm width then you can download the file at the end of this step and go ahead.
If not then grab your vernier caliper and follow me :D
Measure your components and by using the default program for your laser cutting machine adjust the width of each hole as shown in figures.
Note: Be aware of what you are measuring.
Assemble the box where lcd is in the front side and the button in top one.
you made the box.
Oh and here is the file ... :D :D
Step 3: Lcd Hello World!!
Even if you are expert at electronics it's better to make your circuit step by step.
Connect the lcd as shown in figure and test using the code below.
Step 4: Seven Segment Are You Working ??
Test the seven segments as the previous step but this time use breadboard first
- a > 22,23
- b > 24,25
- c > 26,27
- d > 28,29
- e > 30,31
- f > 32,33
- g > 34,35
Note that each segment needs to be connected with 330ohm resistor before connected to arduino.
Also you need to know the diffrence between common anode and common cathode WELL.
here is the code..
Step 5: Make the Creby Monster
Make a pcb with the seven segments circuit.
You can use the same pcb to collect all the grounds of the project in one single node.
Step 6: Connect the Button to Pin 12
Simply, connect the button to pin 12. :)
Step 7: Uber Api
to get produnct_id
the request cycle is as follows:
Here is the code for arduino.
Note: you'r the only one responsible for any requests made to the main api.
Step 8: Assemble !!!!
While assembly make sure that all wires are safe and double check every connection before closing the box.