Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering

Photocells for analog Voltage Reading

By Samidha Verma

Lady Ada used a photocell to analog Voltage Reading Method with a 5V supply in a configuration where the analog voltage reading ranges from 0V (ground) to about 5V. Although a 3.3v supply can also be used as it is based on the idea that as the resistance of the photocell decreases, the total resistance of the photocell and the pull-down resistor decreases from over 600KΩ to 10KΩ

She adopted the easiest way to measure a resistive sensor by connecting one end to Power and the other to a pull-down resistor to ground. Then the analog input of a microcontroller such as an Arduino is connected to point between the fixed pull-down resistor and the variable photocell resistor

The trick lies in the way, where current flows through both resistors increases which in turn causes the voltage across the fixed 10KΩ resistor to increase. She has used a table to indicate the approximate analog voltage based on the sensor light/resistance w/a 5V supply and 10KΩ pull-down resistor. It is available on her website

But there are some setbacks, for instance, if you want to have the sensor in a bright area and you use a 10KΩ pull-down, it will quickly saturate as it will hit the ‘ceiling’ of 5V and not be able to differentiate between bright and really bright. Therefore, replace the 10KΩ pull-down with a 1KΩ pull-down. Hence, it won’t be able to detect dark level differences but it will be able to detect bright light differences better. Else, “Axel Benz” formula can also be used by first measuring the minimum and maximum resistance value with the multi meter and then finding the resistor value with

Lady Ada has used a sketch that will take the analog voltage reading and help to determine how bright the red LED is. The LED has to be connected to a PWM pin for this to work.  A simple Code is used for Analog Light Measurements as it just prints out what it interprets as the amount of light in a qualitative manner.

This capture from an oscilloscope shows what’s happening on the digital pin (yellow). The blue line indicates when the sketch starts counting and when the counting is complete, about 1.2ms later.

As it is clearly understood concept that photocells are resistors, it is possible to use them without analog pins on microcontroller. This is possible because of the advantage that is taken from a basic electronic property of resistors and capacitors. The concept is that when capacitor is initially storing no voltage, and is connected to power like 5V through a resistor, it will charge up to the power voltage slowly. To summarize, the bigger the resistor, the slower it is. Here, the capacitor acts like a bucket and the resistor is like a thin pipe. So, when a bucket is to be filled up with a very thin pipe, it takes enough time that can be used to figure out how wide the pipe is by timing how long it takes to fill the bucket up halfway.

The capacitor can be changed anyway but make sure the timings will also change for these photocells although 0.1uF ceramic capacitor is the best one to start for these photocells. For bright ranges measurement, use a 1uF capacitor and for darker ranges, go down to 0.01uF.

The detailed information is available on the website


Filed Under: Reviews

 

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


Featured Tutorials

  • Introduction to Brain Waves & its Types (Part 1/13)
  • Understanding NeuroSky EEG Chip in Detail (Part 2/13)
  • Performing Experiments with Brainwaves (Part 3/13)
  • Amplification of EEG Signal and Interfacing with Arduino (Part 4/13)
  • Controlling Led brightness using Meditation and attention level (Part 5/13)
  • Control Motor’s Speed using Meditation and Attention Level of Brain (Part 6/13)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • What are the battery-selection criteria for low-power design?
  • Key factors to optimize power consumption in an embedded device
  • EdgeLock A5000 Secure Authenticator
  • How to interface a DS18B20 temperature sensor with MicroPython’s Onewire driver
  • Introduction to Brain Waves & its Types (Part 1/13)

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr bluetooth dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics renesaselectronicscorporation Research samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • Advice for my disabled son please
  • Very low voltage/power Schmitt trigger?
  • 3D IC Design: Is it possible to stack CPU and FPGA?
  • dc to dc converter sparks when inserting fuse
  • 7 segment display connections

RSS Electro-Tech-Online.com Discussions

  • Pet Microchip scan
  • Disabled son needs advice please
  • Modify a digital clamp ammeter ?
  • Confirming whether this circuit will work
  • How does a blinky/flashing ball work?
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering