SEE SAW I2C Soil Sensor connectivity with Atmega 328P

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Lsowinski
 
Posts: 2
Joined: Fri Apr 07, 2023 1:53 pm

SEE SAW I2C Soil Sensor connectivity with Atmega 328P

Post by Lsowinski »

Hello, I am attempting to utilize the see-saw I2C Soil Sensor with an Atmega 328p. I only need the capacitance value from the sensor, but on the website, the only address I can find is 0x36. I need to know what register the capacitance values are in so I can pull them independently from the temperature output.

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: SEE SAW I2C Soil Sensor connectivity with Atmega 328P

Post by adafruit_support_carter »

Is there a reason you can not use the Arduino library?
https://learn.adafruit.com/adafruit-ste ... duino-test
With that you can use getTemp() for temperature and touchRead(0) for the capacitance value.

If you really need low level register access, use:
SEESAW_TOUCH_BASE = 0x0F
SEESAW_TOUCH_CHANNEL_OFFSET = 0x10

Info on seesaw reading/writing here:
https://learn.adafruit.com/adafruit-see ... iting-data

User avatar
Lsowinski
 
Posts: 2
Joined: Fri Apr 07, 2023 1:53 pm

Re: SEE SAW I2C Soil Sensor connectivity with Atmega 328P

Post by Lsowinski »

I am attempting to utilize this for a school project where all of our coding is required to be done in c++ utilizing microchip studio.

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: SEE SAW I2C Soil Sensor connectivity with Atmega 328P

Post by adafruit_support_carter »

Ok, then that guide is a good place to start for general info on seesaw register reading/writing.

For any info missing from the guide, the source code in that library linked is best source.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”