1 / 37

Liter Liquid Tending Robot

Liter Liquid Tending Robot. Julie Lam Kevin Chang Jason Smith Andrew Jenkins. Objectives. Move using tracks and motor Receive order by using Keypad and LCD Delivering an assortment of drink through controlled valves

cadee
Download Presentation

Liter Liquid Tending Robot

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LiterLiquid Tending Robot Julie Lam Kevin Chang Jason Smith Andrew Jenkins

  2. Objectives • Move using tracks and motor • Receive order by using Keypad and LCD • Delivering an assortment of drink through controlled valves • Read customer information (tab, name, preferences) through magstripe reader. • Follow route using sensors. • Pre-recorded voice prompts. Core Goals Extensions

  3. Block Diagram SRAM SRAM ROM ROM FPGA FPGA Card Card LCD LCD Registers Registers Reader Reader Microcontroller Microcontroller Keypad Keypad Interrupts Interrupts Path Path A/D A/D Sensor Sensor Motors Motors Power Power Supply Supply 12V_UNREG Washer Pumps Valve 110VAC 110VAC 15V Solenoids 5V 5V -15V

  4. Status • 68HC11 is up, running uC code from ROM, read/writing to RAM, communicating via RS-232 to host PC. • Interrupt-driven communication. • Unregulated power supply complete, provides plenty of power for washer pumps and motors (>2A). • Tested with pumps – works. • Motor base turns, moves, varies speed; with bench setup (not a Puerile design).

  5. FPGA- XCS10 Kevin Chang

  6. FPGA Overview • XCS10 FPGA device • Interface between microcontroller and ‘dumb’ peripheral devices. • Chip selection based on address bus • Registers for valve controls and motor controls. • Interrupt detector and interrupt controller.

  7. Microcontroller-HC11 Jason Smith

  8. Hello World Test in C

  9. Interrupt Test

  10. MICROCONTROLLER Store ROM information into registers Selects the LCD Outputs the ROM information FPGA Tells ROM to place information on the bus Selects LCD to receive information from the data bus LCD

  11. MICROCONTROLLER Processes pump selection and duration Outputs above information onto the address and data buses Receives interrupt FPGA Selects appropriate pump and outputs power to transistor Uses decrementer to hold selected pump for the duration Send interrupt when finished Pumps

  12. MICROCONTROLLER Outputs direction, speed, and stop command FPGA Controls the motor inputs Uses direction input to output to motor Stores speed input to the duty cycle register Uses stop command to turn off motors Motor

  13. MICROCONTROLLER Performs ADC of light sensor photo transistors Processes light sensor data for path correction or stop command Outputs appropriate data to FPGA FPGA Selects light sensors Light Sensors

  14. MICROCONTROLLER Receives interrupt Reads from FPGA interrupt register Reads card information and location from card data shift register FPGA Generates XIRQ interrupt when card leaves card reader Stores serial card data into shift register as card is swiped Card reader

  15. RS-232 • Receives and sends debugging commands to the microcontroller.

  16. High level microcontroller processes • Priority queuing • Priority interrupt control • Processing orders • Processing path following algorithm • Processing card reader information

  17. Interface Circuits • Pump Control Circuit • Motor Control Circuit • Line Follower Sensors • Keypad Interface • LCD Interface

  18. Motor Control Circuit • Uses L293D Motor Driver • DC Gear Motors • Input 2x PWM signal (square wave, ~1kHz, duty cycle->speed). • Input 2x direction signal. • Provide motor power (12VDC, 400mA). • FPGA provides PWM, direction.

  19. Motor Control Circuit

  20. Pump Control Circuit • TTL compatible (FPGA). • P-channel Power MOSFET dissipates 190mW. • 6N138 Darlington Optoisolator (CTR 2000%) Pump Current Monitor • 0.05 Ohm Current-Sense resistor, common for all high-power (> 1W) applications. • LM6462 Rail-to-rail OpAmp->Current Reference • 6N135 Analog Optoisolator (CTR ~20%)

  21. Pump Control Circuit

  22. Line Follower • LED current adjustable, >= 1mA • LED on/off controlled by FET, TTL/CMOS compatible. • Phototransistor senses light level, believe ~1mA peak current. • Will add OpAmp to expand signal if needed. • Uses 4 channels of CD4051 Analog Multiplexer, select controlled by FPGA.

  23. Line Follower

  24. Magnetic Card Reader • 3 Mag Card Readers • Outputs “Card Inserted” signal – used to enable the FPGA shift register • Outputs “Data Clock” – used to clock the data into the FPGA shift register • Outputs “Data” – the data.

  25. Magnetic Card Reader

  26. Keypad • MM74C922 decodes Row/Column Keypad into 4 bits data. • Double buffer register. • Debounce capacitor. • Data available signal.

  27. Keypad

  28. LCD Interface • CrystalFontz CFAH-2004A-RMC-JP • 20x4 Character Display, parallel interface, red backlight

  29. LCD Interface

  30. Power Supply Julie Lam

  31. Power Supply Tech • From ~110VAC Wall outlet, fused. • One transformer from ~110VAC to 12VDC • Using a bridge rectifier, diode and large cap for the circuit. • Using a pre-assembled 110VA to 5VDC @ 1.8A power supply for Logic devices (with +/- 15 for Analog). • Using an unregulated power supply for peripherals such as motor and pumps (~12VDC, > 2A).

  32. Milestone 1 • 1st PCB rev completed and ordered • Complete and working setup for motor, pumps and other hardware • Communication between microcontroller and FPGA • Initial integration of motor, pumps and software controls

  33. Milestone 2 • All software coded • Completed integration of design • Begin testing full system

  34. Timeline

  35. Parts and Costs

  36. Show and Tell

  37. Division of Labor • Kevin Chang and Julie Lam • FPGA pump control, motor control interfacing and Programming • Jason Smith and Andrew Jenkins • Microcontroller and motor interfacing and Programming

More Related