Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
thanks, but i dont know how to send a data or address to write or read on color sensor, referring mikrobasic you can see an instruction, just to add address and what you need to write, so i need the address for each register.
Page 18 of the data sheet has the register addresses.
The communication protocol is explained very well from page 7 onwards. If you haven't used I2C before, I suggest that you try a simple routine to start with. Just send the address (0x74) and a read or write bit and the sensor should acknowledge the I2C transmission with a single low bit. Make sure that that works, and make sure it doesn't work when the sensor is disconnected, and you will have made a start. Don't go on to try to read specific registers until you are sure that the basic communication is connected correctly.
Thanks for cooperate with me, but could you please tell me how i can determine No. channels cap and Integration Time Slot Setting Register for xxx Channel
also what is the relation between channels and data reading.
thanks
Do you have access to an I2C bus analyzer? I've used my PICkit2 clone as one and they're really handy for getting the hang of I2C. A DSO could also be used.
Is this a real circuit or simulation?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.