Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

xocai's Content

There have been 7 items by xocai (Search limited from 26-April 23)


By content type

See this member's

Sort by                Order  

#25310 Is my netduino faulty? Simple analog test = 1023 constant :(

Posted by xocai on 09 March 2012 - 09:29 PM in Netduino 2 (and Netduino 1)

Thanks, I've now uploaded it :)

I'll try and ground all the other pins also.

Xocai

Hello,

The file was not attached :(

Can you try tying all the analogue ports you are NOT using to ground and re-try the mesuments on the port again. You should be seeing 0 on all the ports tied to ground and you should only see a value on the port you have the sensor attached to.

Cheers Pete.




#25304 Is my netduino faulty? Simple analog test = 1023 constant :(

Posted by xocai on 09 March 2012 - 08:34 PM in Netduino 2 (and Netduino 1)

Hi, I've attached the FZZ file as a ZIP. The IR Compound Eye is not a component in Fritzing so I replaced it with a POT. The left wire being ground, the second wire being IR Sensor output and right wire being Positive. When I connect the middle wire (sensor output wire) and ground wire directly to a voltmeter instead of the Netduino all the Analog pins register as 1023, despite when measuring the directly with a multimeter the voltage is between 0.8V and 2.8V depending upon if I cover the IR sensor or not, so I know the sensor on the IR Compound Eye is working. Thanks, Xocai

Attached Files




#25298 Is my netduino faulty? Simple analog test = 1023 constant :(

Posted by xocai on 09 March 2012 - 07:54 PM in Netduino 2 (and Netduino 1)

I thought I attached the fzz file but just realised it's not an allowed type. Here is my circuit with the above issue I described. Thanks.

Attached Thumbnails

  • analog-problem_bb.png



#25291 Is my netduino faulty? Simple analog test = 1023 constant :(

Posted by xocai on 09 March 2012 - 06:00 PM in Netduino 2 (and Netduino 1)

Hi All, I've been doing some testing with my IR Compound Eye from http://arduino-direc...ct_detail&p=249 and I have the issue that when I connect the IR sensors to any of the netduino analog inputs they all read 1023, I read them all at the same time. I can't power this off the netduino as the IR compound eye needs decent current to power the IR emittors but I'm not currently using them. I've attached my setup diagram (but put a potentiometer where the eye goes). I've checked the supplied battery voltage in with a multimeter is 4.8V and if I connect my multimeter to the cables running to the netduino A0 and GND I read between 2.8V in bright light and 0.8V when I cover the sensor so I know the voltage is in the correct range. It's really confusing as the Analog inputs work fine off the 3.3V with other sensors. I've read on this forum that putting 5V on any analog input does this but I know for a fact I'm putting between 0.8V and 2.8V nowhere near 5V. Is this a known issue? Or am I doing something completely wrong? Thanks Xocai



#25254 Is my netduino faulty? Simple analog test = 1023 constant :(

Posted by xocai on 08 March 2012 - 11:47 PM in Netduino 2 (and Netduino 1)

Wow didn't expect to get so many replies, thanks!. Chris, I'm definitely using 3.3V and not 5V. I believe the port is 5.5V tolerant and that anything over 3.3V will just read high. I think it might be the LDR at fault in reading the top of the range and will try other sensors to get an idea of what I'm dealing with. Pete this code looks exactly like what I've been looking for, thanks! I'll give it a go this weekend with my Infra-red sensors. Xocai



#25245 Is my netduino faulty? Simple analog test = 1023 constant :(

Posted by xocai on 08 March 2012 - 05:49 PM in Netduino 2 (and Netduino 1)

Hi, Thanks for the suggestions. I have a Rev B board I've discovered. Some trial and error when I got home made me discover the LDR works in that it reads 1022 and when I put my hand over it, it goes down to 900 (not very wide range but better than nothing). I've since wired a variable resistor and turning this from min to max has a range of 0 to 1023 so I'm happy to find it's working as should. I did however notice it's varying between when reading the same resistance by as musch as 20 when reading the value, is this normal? I'm going to be using this to detect infra-red and so ideally need stable figures. I tried using the AREF as suggesting thinking it would normalise the figures but still get fluctuations. Thanks for all your help and suggestions by the way. I must say other than having minor issues like this I'm very happy with my netduino and since I'm a C# developer in my job I'm really looking forward to writing some good software.



#25216 Is my netduino faulty? Simple analog test = 1023 constant :(

Posted by xocai on 08 March 2012 - 10:33 AM in Netduino 2 (and Netduino 1)

Hi, This is my first post and I've had my netduino now for around 3 weeks and I've now got a problem with all my analog sensors always reading 1023 when I connect for example a simple LDR. The example setup I'm using is: LDR - 3.3V LDR - A0-A05 (tried all ports) When I read the analog it's always coming back with 1023 and it's doing it for a number of other analog sensors also now. The issue is I'm very sure that it never used to do this and I remember getting it working before with the above exact setup. I've read other posts on this forum about connecting 3.3V to the AREF port (I've not tried this yet) but I thought the Netduino had a default AREF? Is there a reset I can do to get this working without now having to use the AREF port? As I said I've had it working with AREF use before so not sure what's changed. Any advice whould be much appreciated.




home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.