Hi!!! I'm a chemistry working with Arduino for my phd thesis, and so I'm very new with arduino programming and my knowledge really basic!!! I have a problem and I would like to try to solve with Arduino if it is possible. The device of my project include the Grove I2C Color Sensor V2, TCS34725FN, with a switch in the upper part controlling the led state: switched off and switched on...by that very small switch it is possible to switch on and switch off the led of the sensor. Well, I've destroyed that switch and now I would like to know if it is possible to write just a small Arduino sketch to switch on or switch off the led...
Really really thanks for your help!!!
The switch probably just connects the LED, or maybe the sensor circuitry too, to either 5V or GND. If you can establish what it does then there will be more chance of helping you
Is there any chance of finding a schematic for the sensor ?
Really thanks for your attention!! At the moment I don't have the schematics, I have to look for it....I will look for it and I will post!!
Is the switch single pole or double pole ? Probably the former. It could be replaced by a relay controlled by an Arduino once you have worked out which of its contacts require to be connected to turn on the LED and/or board
How much current does the whole board, including the LED, take when turned on ?
I don't have these informations, sorry!! Just trying to control the led with a sketch if it possible!! Really thanks for your attention, sincerely
It would be simple to use a relay to replace the switch but only if you can work out what the switch actually does
From:
... it looks like it's a pretty low-power device, with a datasheet and Eagle files.
You could just drive the LED with a pin on the Arduino.
Yes, it seems that all the switch does is to turn the LED on/off so an Arduino pin would do it
Hi!!! Sorry for the delay: these have been very hard days!!! effectively, with TCS34725 sensor from adafruit you can control the switching of the led from the pin, but the TCS34725 from Grove has just 4 pin: the ground, the Vcc (5 or 3.3 V) and the two for the serial communication: one for SDA and the one for SCL...so I think that is not straighforward!! Sorry if I'm wrong, I'm very new with Arduino!!! Really really thanks for your attention!!
I can't tell how broken your switch is, but I meant that you could remove the switch, and in its place supply the LED with an extra pin from the Arduino.
Hi!! Really thanks for your attention!! The problem is that the sensor is provided with just 4 pin: : the ground, the Vcc (5 or 3.3 V) and the two for the serial communication: one for SDA and the one for SCL....there are not extra pin to connect to Arduino!! Just controlling the led with the serial communication, but I'm not able to do that!!! Differently, with the sensors tcs34725 from Adafruit, there is a pin dedicated to led and it more easy for me to control!!!
I'm saying it looks possible to add a dedicated pin in place of the switch. You'd have to be familiar with circuit boards and soldering, or know someone who is.
Hi!! Sorry for the delay, but I have some hard times!!! At the end I-ve found that schematics for the sensor....the problem remain how to switch on/off the led integrated into the sensor by the serial monitor of Arduino (if it is possible!!). In this sensor there are not pin connected to the led...
Remove the switch, solder a wire to the appropriate PCB pad and connect it to an Arduino pin
Controlling the state of the pin via Serial on the Arduino is easy
Really really thanks, sincerely !! I think that it is the way!!!
Really really thanks for your attention, sincerely!!! Yes, I think that it is the way!!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.