Go to Post To borrow a slogan from the last place KC Royals "It's Our Time" The curse will be broken! ;) - Alpha Beta [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 13-02-2010, 01:08
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: CAN Position control code?

A little background on the 10k potentiometer value in the manual:

The Luminary Micro ARM processor that's in the Jaguar operates off of 3.3v, but the ADC is only 3v tolerant. They have a 1k resistor connected in series to the power pin on the pot input on the Jaguar, so you have to use a 10k pot to cause a voltage drop across the 1k resistor of .3v and the voltage drop across the entire potentiometer of 3v.

By using a 100k pot instead of a 10k, you're causing a voltage drop of 3.27v across the potentiometer. This means that if you pull the pot all the way down to its minimum resistance, the ADC is experiencing 3.27v, which is .27v greater than it was rated for. This might be why you had sporadic results.

If you don't have a 10k pot on hand, don't use a lower value, as that will cause more current to flow, which is also not necessarily good. If you have some spare resistors lying around, try putting them in series or parallel with the two extremes of the potentiometer to achieve 10k. This may reduce your resolution, but it won't break the Jaguar. If you don't have any resistors, wait until the next day.

This is just my take on it, if it works fine for you, go for it, but it may or may not be risky.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Position Control using potentiometer? biojae CAN 13 03-02-2010 20:12
More CAN control questions Geek 2.0 Electrical 0 12-01-2010 13:40
CAN control weirdness nathanww Electrical 4 04-01-2010 21:13
can we control the amount of air to control the speed of the cylinder? Team2339 Pneumatics 22 11-02-2009 15:33
Where can I find motor control in Camera.c? sjung9442 Programming 3 31-01-2006 15:49


All times are GMT -5. The time now is 14:01.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi