![]() |
Re: Driver Station Usb
One option would be to use the analog inputs - you might be able to produce two voltages proportional to the X and Y axis on the screen.
My favorite method is still to pretend to be a USB joystick. Quote:
The actual pins on the DS can safely handle 1 Amp each, so 2 should be fine. |
Re: Driver Station Usb
Quote:
take 3 analog pins 1 X 2 Y 3 Point # and update per point on screen Quote:
Quote:
|
Re: Driver Station Usb
****PLEASE NOTE: I have very little experience programming, so what I am about to say may not work, it is just an idea.****
I was just thinking, if you really want a touchscreen device, use an iPod touch or iPhone. With the release of OS 3.0, Apple opened up the possibility of utilizing the usb connector for outside devices. Maybe you could build a program for the iPod/iPhone to emulate a HID and get it to connect to the DS. |
Re: Driver Station Usb
Quote:
|
Re: Driver Station Usb
While i wait for everything to arrive (Slowwww mail :mad: ), i have almost finalized how its going to work (Ethernet pending)
3 Analog inputs on the driver station, #1 X input 100 points of resolution (Have to account for Electrical noise) #2 Y input 100 points #3 Point # 50 points (To reduce waypoint navigation math) 1 digital in #1 to signify point # change 1 Digital out #1 To signify robot received point 1 digital potentiometer to the arduino and driver station liquidware touchshield slide to arduino to digital potentiometer |
Re: Driver Station Usb
Quote:
Quote:
Code:
set valid data bit to 0Code:
if valid data pin is 1: |
Re: Driver Station Usb
Quote:
Code:
bool DsPoints[100][100]; |
Re: Driver Station Usb
Quote:
EDIT: If you do want to use a higher resolution digital pot, the AD5292 has 1024 steps. Still, digital pots aren't designed for this type of use. |
Re: Driver Station Usb
Quote:
|
Re: Driver Station Usb
Quote:
Your update rate is 50Hz (times per second), so you want to be sure that you can change at least that quick. Lets target 100-200 Hz for our filter. An RC filter's cutoff frequency is 1/ (2 * pi * R * C) . Play with this calculator http://www.muzique.com/schem/filter.htm to find good values. The default 10k and 0.1uF would probably work well. * This places the filter at about 160Hz. Make sure your DCM** signal is significantly quicker than that (2kHz? faster?) and you should be good to go! * If you double R, you can cut C in half. So, how do you choose a value? Basically, pick what you can get, and don't let R get too big (over 100k). ** People often say PWM (Pulse Width Modulated) when they mean DCM (Duty Cycle Modulated). I make sure my students know which one they really care about - do they care how long the pulse is, or do they care about the duty cycle? Put more clearly, if your base frequency changes what needs to stay the same? |
Re: Driver Station Usb
i have a large supply of resistors, but can only find 10 uf capacitors and larger
|
Re: Driver Station Usb
Quote:
Code:
ds->setDigitalOut(receivedPin, !ds->GetDigitalOut(receivedPin));--Ryan |
Re: Driver Station Usb
well i forgot that part, the hard part is going to be in calculateRoute though :rolleyes:
|
Re: Driver Station Usb
well i got the digital pots in the mail today (couldn't get low pass to work properly). first try on the arduino and it works! They are 10k 256 step pots
(Maxim ds1803). waiting for the screen now. |
Re: Driver Station Usb
Awesome! Let us know how the rest goes.
--Ryan |
| All times are GMT -5. The time now is 02:41. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi