Processes Projects |
Main /
LightSensorAndElectromagnetUpdated 5th September By John Lin Overview
This is how to attach the electromagnet to the Instructions for Electromagnet
Electromagnets: The wires are already provided. On the bottom of the board we see what each color is supposed to mean: Black GND Red VCC, meaning voltage at common collector White NC, meaning numerically controlled. I guess it means you can control how much the electromagnet outputs the magnetic field Yellow SIG, signal it just means you get some sort of recordable feedback Anyways the example Arduino they use to connect with the electromagnet is below: https://www.seeedstudio.com/Seeeduino-Lite-p-1487.html So we see that the electromagnet connects to http://wiki.seeed.cc/Grove-Electromagnet/ Key Below: Electromagnet Arduino, color: GND GND , black VCC VCC, Red NC TX, white SIG RX, Yellow We know where to have ground and VCC on the Leonardo Arduino. Now we have to find where RX and TX on the Leonardo Arduino. The Seeediono Lite however has a specific port built in for the sensor mentioned above. Just a side note to remember. Would be much easier to integrate both of them. TX means to transmit RX means to receive On the Leonardo Board, the same two ports exist so it seems we can just align them using the color coded key below. Thus, it should be compatible. So, we just need to check if the Arduino Board and supply the 400 mA. We can see that it already supplies the 5V because of the 5V next to the red circle in the picture above. I am not sure what this means. Does the 400 mA current from the 5V pin or another power source? Here is what I found below: https://arduino.stackexchange.com/questions/28950/whats-leonardo-5v-pin-current-limit Instruction for Light Sensor
How to connect VCNL 4010 Proximity Light Sensor to Arduino There are 6 pins and here is what they mean Voltage Pins: Vin - this is the input to the voltage regulator. Power with 3-5VDC. Has reverse polarity protection. GND - this is the signal and power ground pin, connect to your microcontroller ground pin Other Pins: 3vo - this is the output from the onboard regulator. If you need a clean 3.3VDC, you can draw up to 100mA from this pin. INT - this is the interrupt output from the chip, with a 10K pullup to 3.3V. You can check this pin to see when the next set of conversions are done. Below are the pins for reading sensor Data: SCL - this is the i2c clock pin, connect to your microcontroller I2C clock master pin. SDA - this is the i2c data pin, connect to your microcontroller I2C data master pin. Video Tutorial Below Note: it is a different sensor but it uses only 4 pins and the current sensor PCB contains all 4 of those pins so it seems doable. https://www.youtube.com/watch?v=UsLcHSbxf_8 2nd Video showing a third different model but using the same 4 pins. https://www.youtube.com/watch?v=3vZcTfReqwE Below is a 4th model with a good picture on how wiring should be done to the Arduino. https://cdn-learn.adafruit.com/downloads/pdf/adafruit-si1145-breakout-board-uv-ir-visible-sensor.pdf Picture from PDF Below: Version history
Wishlist |