You are here

reading battery level with SAR ADC | Cypress Semiconductor

reading battery level with SAR ADC

Summary: 4 Replies, Latest post by mario.pro2_1603066 on 13 Sep 2016 05:56 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
mario.pro2_1603066's picture
User
23 posts

Hi all,

I'm trying to make it possible to read the battery level from my device using SAR ADC, but unfortunately I can't manage to connect it properly. I've been searching some info on the Internet and I was trying to make it similar to the solutions I've found. I've attached a scheme of my connection. Could someone give me a hand how to make it right?

user_242978793's picture
User
1365 posts

Please post your project we can't tell from the picture what the issue. is.

mario.pro2_1603066's picture
User
23 posts

This is my whole project. Also I've got another issue with which I have problem. I would like to save some data to the EEPROM, but then there is a problem with bootloader. For what I've read the bootloader is saved on the same bits of data that the EEPROM will want to save. Is there any way to change a memory space in which the bootloader is, or space to which I will save data in that EEPROM? Thanks for your replys

user_242978793's picture
User
1365 posts

Well I tried your program and it seems to have an issue around the Terminal components. I moved all of the parts minus the analog parts to another page and it still complained about them even after they where removed. This is usually caused by using an analog device on a digital pin or using an analog pin on a digital pin.  I would try the project over from scratch and see if that helps. 

mario.pro2_1603066's picture
User
23 posts

Hm thank You for Your reply. The problem is  when I try to connect SAR to the rest with the project. without that element everything is fine. Maybe I'm doing something wrong and this should be done completely different? 

Log in to post new comments.