Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using 5v-12v as input sensor
#10
I've added a 50k resistor between each digital input and GND.
with that i was able to get proper reading from PNP sensor.

1. is that acceptable workaround? or would the constant current from D2 to GND harm the A6?
2. what is a recommended resistor from D2 to GND? (i tested 10k, and 50k, they both worked well).


Code:
^
|------------|                       |
|            |---Brown---VCC 12V-----+            |--------------|
| PNP Sensor |                                    |              |
|            |---Black--output(12v)-----+---------| D2           |
|            |                          |         |              |
|            |                       | R=50K |    |  Kincony A6  |
|            |                          |         |              |
|            |---Blue---GND-------------+---------| GND          |
|------------|                                    |--------------|
Reply


Messages In This Thread
using 5v-12v as input sensor - by amararsa24s - 09-08-2024, 11:05 AM
RE: using 5v-12v as input sensor - by admin - 09-08-2024, 11:26 AM
RE: using 5v-12v as input sensor - by amararsa24s - 09-09-2024, 07:08 PM
RE: using 5v-12v as input sensor - by amararsa24s - 09-09-2024, 06:10 PM
RE: using 5v-12v as input sensor - by admin - 09-09-2024, 11:03 PM
RE: using 5v-12v as input sensor - by amararsa24s - 09-10-2024, 07:32 AM
RE: using 5v-12v as input sensor - by amararsa24s - 09-11-2024, 05:08 PM
RE: using 5v-12v as input sensor - by admin - 09-11-2024, 11:42 PM
RE: using 5v-12v as input sensor - by amararsa24s - 09-12-2024, 06:31 AM
RE: using 5v-12v as input sensor - by amararsa24s - 09-14-2024, 11:11 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)