View unanswered posts | View active topics It is currently Sat Apr 19, 2014 1:32 am






Reply to topic  [ 6 posts ] 
9V from Analogue pin 
Author Message
Rookie

Joined: Sat Mar 07, 2009 5:53 am
Posts: 3
Post 9V from Analogue pin
Hi there,

I'm trying to use the Analogue pin as a power source for an I2C sensor application and SensorType[my_sensor]=sensorI2CCustom9V; doesn't do anything to the pin- it's not supplying power.

I've read that you can use 'sensorI2CCustomStd9V' but my compiler doesn't recognise this!

It worked fine with NXC so I know my hardware is okay :-) I also only need 10 mA with a 5V regulator and sensor, so I'm certain that I'm not drawing too much current.

I'm using V1.40 753.

Any suggestions?


Sat Mar 07, 2009 7:07 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3105
Location: Rotterdam, The Netherlands
Post Re: 9V from Analogue pin
Hiya John,

Try using the sensorI2CCustom9V sensor type. Did you try configuring it with the motor+sensor wizard doodad?

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sat Mar 07, 2009 7:54 am
Profile WWW
Rookie

Joined: Sat Mar 07, 2009 5:53 am
Posts: 3
Post Re: 9V from Analogue pin
Hi there,

No- I'm not using the wizard- I have:
const tSensors my_sensor = S1; (header)
SensorType[my_sensor]=sensorI2CCustom9V; (task main)

I2C works fine but can see no change in the analogue pin.

John


Sun Mar 08, 2009 5:43 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3105
Location: Rotterdam, The Netherlands
Post Re: 9V from Analogue pin
No, I was suggesting you try using the wizard and see if it works for you then :)

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sun Mar 08, 2009 6:08 am
Profile WWW
Rookie

Joined: Sat Mar 07, 2009 5:53 am
Posts: 3
Post Re: 9V from Analogue pin
the wizard doesn't work either :-(


Sun Mar 08, 2009 11:23 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3105
Location: Rotterdam, The Netherlands
Post Re: 9V from Analogue pin
I'm not sure how I can be of any more help to you. Perhaps one of the developers can shed some light on this? You can try writing an email to support@robotc.net

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sun Mar 08, 2009 12:06 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.