chipKIT® Development Platform

Inspired by Arduino™

Max voltage value from readAnalog

Created Fri, 01 Jul 2011 23:34:50 +0000 by subanark


subanark

Fri, 01 Jul 2011 23:34:50 +0000

I'm using the uno32 and the analogRead function seems to be scaled from 0 to 3.3V. Is there a way to change this to 0 to 5.0V?


Trev

Sat, 02 Jul 2011 03:49:06 +0000

Scale your reading as there's no way to change the 3V3 PIC32 into a 5V device :-)


Darth Maker

Mon, 04 Jul 2011 05:24:55 +0000

You can you a [color=#0000BF]resistor voltage divider. [/color] Here is a calculator for values: [color=#0000BF][url]http://www.raltron.com/cust/tools/voltage_divider.asp[/url][/color]

If you have 10K (R1) and 18K (R2) resistors they will work fine.