1 / 28

Big Dog’s Kryptonite controlling a RC car over a network

Big Dog’s Kryptonite controlling a RC car over a network. James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Science and Computer Engineering) Seth Schwiethale BS (Computer Science). what to expect. project objectives requirements/specifications

ross
Download Presentation

Big Dog’s Kryptonite controlling a RC car over a network

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. Big Dog’s Kryptonitecontrolling a RC car over a network James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Science and Computer Engineering) Seth Schwiethale BS (Computer Science)

  2. what to expect • project objectives • requirements/specifications • design issues/technology

  3. project overview • expanding the range of a remote control car • control car over network, similar to a printer • be able to have first person view of car’s location

  4. at a glance

  5. Functional Objectives • establish connection between rc car and driver’s computer • get real time visual feed • control rc car • user friendly GUI • backtracking (retracing to reacquire lost signal)

  6. establish connection • between rc car and user’s computer • TCP/IP protocol suite • connection oriented • reliable • sockets • what are they?

  7. real time video feed • IP camera • video stream • wireless interface • linux kernel • Axis® RTSP • control protocol for media server • “play” and “pause” type of commands • control of media stream properties (bit rate, res, etc…)

  8. IP Camera • Power: 5.1 V DC, max 3.5 W • Alarm output (motion, audio, external) • Open API for software integration • CPU, video processing and compression; • Ram: 32 MB • Flash: 8 MB

  9. originally

  10. with ip camera tcp/ip

  11. controlling car • commands sent from user’s computer to camera • camera relays signal to microprocessor • microprocessor sends translated signal to car

  12. client/server • single connection • server on camera – C • client on user’s computer – Java

  13. sockets in C • create socket intsocket_descriptor; socket_descriptor = socket(AF_INTET, SOCK_STREAM, 0);//domain, type, protocol) //0 = IPPROTO_TCP for AF_INET, SOCK_STREAM • bind socket to port structsockaddr_in address; address.sin_family = AF_INET; address.sin_addr.s_addr = INADDR_ANY; address.sin_port = htons(7000); bind(socket_descriptor, (structsockaddr *)&address, sizeof(address)); • listen for connections listen(socket_descriptor, 5) //there can be up to 5 connections pending, >5 timeout error • accept connection intaddrlen; structsockaddr_in address; addrlen = sizeof(structsockaddr_in); new_socket = accept(sock_descriptor, (structsockaddr *)&address, &addrlen); if(new_socket<0) perror(“Accept connection”);

  14. basic driving cmd sequence

  15. rc car

  16. RC car servo • 3 Leads: • Ground • Vcc • Pulse width modulation

  17. speed and steering

  18. Square Pulse wave of 1.0-2.0ms repeats every ~20ms Width of pulse determines the position of the servo with 1.5ms as the normal center The amplitude of the pulse is from the reference level to the Vcc Vcc = 4.6-6.0V RC car servo Pulse Width Modulation

  19. IP Camera – I/O • 4-pin I/O terminal • 1 transistor output • Max load of 100mA • Max voltage of 24V DC • 1 digital input • Can be activated or left floating • Auxiliary power and GND • Max 5V DC, 2.5W • Connector for main power • Power to auxiliary equip, Max 50mA

  20. tcp/ip

  21. adding a microprocessor

  22. microprocessor • Receives signals from the transistor output of the IP camera • Translates the signals • Sends translated signals to steering box and speed control • Programmed with C and Assembly • Written, debugged, tested using CodeWarrior and a Dragon12 development board

  23. Programming the microprocessor

  24. Backtracking • Every time the IP camera receives a command, it stores the command in memory • If a connection is lost, the camera sends signals to the car to make it backtrack • If a connection is reestablished, backtracking stops

  25. GUI • processing • can communicate directly to RTSP server on camera • have an instance of a client

  26. driver view

  27. all together

  28. fin

More Related