JamesyHutton
New Member
I have recently purchased this chip from digikey: http://www.cypress.com/?docID=44403
I am using the 8-pin SOIC CY8C20142 found in figure 3.
I have it all set up on a SMD to DIP adapter with 4.7k pull up resistors on the SDA and SCL lines going to pin 11 and 13 of my 20x2 picaxe.
I am trying to make a simple touch slider.
I have successfully gotten it to work using a 14m2 chip using its built in touch function and 2 of its pins.
However, the 20x2 does not support touch, forcing me to use this external chip.
I have some VERY minor experience using i2c, however after going through the datasheet as much as possible, I am realizing that I am going to need help to get this working.
Would anyone be able to give me a bit of sample code that would get the chip talking to the picaxe?
All I need is for the picaxe to be getting the values of the touch sense electrodes just like it would using the normal touch command of the m2 versions.
If I could have the values ranging from 0-255 being updated into b0-b3 (for the 4 touch sense pins) I would be able to figure out my way from there.
Thank you all!
I am using the 8-pin SOIC CY8C20142 found in figure 3.
I have it all set up on a SMD to DIP adapter with 4.7k pull up resistors on the SDA and SCL lines going to pin 11 and 13 of my 20x2 picaxe.
I am trying to make a simple touch slider.
I have successfully gotten it to work using a 14m2 chip using its built in touch function and 2 of its pins.
However, the 20x2 does not support touch, forcing me to use this external chip.
I have some VERY minor experience using i2c, however after going through the datasheet as much as possible, I am realizing that I am going to need help to get this working.
Would anyone be able to give me a bit of sample code that would get the chip talking to the picaxe?
All I need is for the picaxe to be getting the values of the touch sense electrodes just like it would using the normal touch command of the m2 versions.
If I could have the values ranging from 0-255 being updated into b0-b3 (for the 4 touch sense pins) I would be able to figure out my way from there.
Thank you all!