Skip to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Light sensor inverted voltage.

Featured Replies

Hi, I found some ambient light sensors that work very well giving a reading of 0 to 400+ giving them a very good range. However the problem is that the analog output is reversed from what is expected. 0 is light and 400+ is dark. Just wondering if there might be a way of inverting that through the webcontrl8 itself. Still looking for a light sensor that outputs the expected range of 0 for dark and 400+ for light. I do have some passive light sensors but they don't have the amp to increase their range of sensitivity.

Thanks for any advice.

Gary

It looks like it can be done with PLC programming but I would not know how to do that.

Edited by garybixler

  • Author

Thanks Guy,

I added this to the webcontrol8 PLC programing.

START

SUB 500 AIP2 VAR1

SKIP_OFF:

END

It does work but I don't think the light sensor is very linear. I can get 0 in full darkness and 498 in bright light as a value in the variable.

Gary

The ideal method is by integration (averaging over time). 4 or 5 samples spread out over several minutes, then take an average. Then discard oldest sample and take new one, keep averaging.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.