Int sensorValue = analogRead(BATTERY_SENSE_PIN) įloat batteryV = (sensorValue * MULTIPLIER)/1023. The easiest way I found was to define a multiplier needed to derive the raw voltage, in this case (((R1+R2)x1.1)/R2) - For your resistor arrangement the max you can read is 3.4404v before exceeding the 1.1v internal reference. Hello All, I am looking for the proteus library of 16x32 led matrix as I didnt find it elsewhere so kindly someone tell me the process of finding this library or is there any alternate method for using this matrix with other tools from proteus. If you have 3v at the top of your voltage divider, you should be getting 0.9593v applied on the ADC pin which will be read as 892 against the 1.1v internal reference. Copy module.lib to library in programdata proteus. It's an awfully convoluted way of doing things but suspect your error lies in misunderstanding calculations mixing ints and floats and something screwy with your resistor bridge - It is always worth checking the bridge with a multimeter and raw voltage to verify the expectation. How do I add an RF module in the Proteus library Download RF module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |