SEE SAW I2C Soil Sensor connectivity with Atmega 328P
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Lsowinski
- Posts: 2
- Joined: Fri Apr 07, 2023 1:53 pm
SEE SAW I2C Soil Sensor connectivity with Atmega 328P
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.
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: SEE SAW I2C Soil Sensor connectivity with Atmega 328P
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
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
- Lsowinski
- Posts: 2
- Joined: Fri Apr 07, 2023 1:53 pm
Re: SEE SAW I2C Soil Sensor connectivity with Atmega 328P
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.
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: SEE SAW I2C Soil Sensor connectivity with Atmega 328P
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.
For any info missing from the guide, the source code in that library linked is best source.
Please be positive and constructive with your questions and comments.