Need help
-
Hello,
I'm a french student and with my team we want to create a smart meter with a light sensor. So we bought 2 kit LoPy with 2 expansions board and 2 antenna. We want to connect this 2 cards far from them using LoRa but we don't have any knowledge on python. We only learned Arduino. So I want to know how to use a basic light sensor with the LoPy card.
-
Do you know what particular light sensor you will be using for your project? Some just provide an analog voltage, others have digital interfaces.
-
@mrbombastiks You could have used a Pysense which has a light sensor built-in (if by light sensor you mean something that measures ambient light level).
-
Hello, sorry for the overdue.
I'm using a basic lightsensor wich is used with arduino as you can see on this picture :

-
@mrbombastiks
If you need the value from your analog light sensor
then simply use ACD for this e.g:from machine import ADC adc = ADC(0) light = adc.channel(pin='P13',attn=ADC.ATTN_11DB) #read current light value value = light() -
@livius
I'm actually using this code, because I'm looking to get the blink of the meter.
Know I need to find when the led is blinking, because he send everytime the value. I want to know how to check the difference between this value and the last one.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login