Free Canadian Shipping on orders over $150 with discount code "FREESHIP"!

New Products

Octopus Analog Photocell Brick OBPhotocell

EF04032

10 items left


Octopus Electronic Bricks! You can use them build electronics projects just as easy as piling bricks! By using Octopus electronic bricks, you may connect Arduino or compatible boards easily with various digital, analog and I2C/Uart interfaces. These breadboard-less firm connections includes an extensive collection of modules like potentiometers, sensors, relays, servos, and even buttons.  Just plug and play!

What is a photocell?

Photocells are sensors that allow you to detect light. They are small, inexpensive, low-power, easy to use and don't wear out. For that reason they often appear in toys, gadgets and appliances. They are often referred to as CdS cells (they are made of Cadmium-Sulfide), light-dependent resistors (LDR), or photoresistors.

Photocells are basically a resistor that change their resistive value (in ohms Ω) depending on how much light is shining onto the squiggly face. They are very low cost, easy to get in many sizes and specifications, but tend to be inaccurate. Each photocell sensor will act a little differently than the other, even if they are from the same batch. The variations can be really large, 50% or higher! For this reason, they shouldn't be used to try to determine precise light levels in lux or millicandela. Instead, you can expect to only be able to determine basic light changes

For most light-sensitive applications like "is it light or dark out", "is there something in front of the sensor blocking the light", "is there something interrupting a laser beam (as in a break-beam sensor)", or "which of multiple sensors has the most light hitting it", photocells can be a good choice!

Features

  • 3P buckled wires connector
  • Easy to 'plug and play
  • Use to create interactive projects!

Quick Start

Hardware Connection

Connect the module to P1 port on OCTOPUS:BIT.

 

Programming

Code

You can see the whole program from the link here

Result

When the mapped value of light is above 700, micro:bit will display a heart; when the value is under 700, it will display a rectangle.

Resources:

Please visit our wiki page for more info about this product. It will be appreciated if you can help us improve the documents, add more demo code, or create tutorials.