Ahh, just found it - BD18 Bit Composition ! :)
Best posts made by CKB
Latest posts made by CKB
RE: Iterate through UniPi1 digital IN/OUTs
I found a capacitive keypad here: https://www.robotshop.com/uk/16-button-capacitive-keypad-module.html
and a module that can connect the keypad via I2C here: https://www.robotshop.com/uk/16-keys-capacitive-touch-ttp229-i2c-module.html
Before I buy it - can UniPi1 cope with this?
Iterate through UniPi1 digital IN/OUTs
I want to operate a 4x4 switch matrix with the UniPi1
digital IN/OUT 1-4: matrix rows 1-4
digital IN/OUT 5-8: matrix columns 1-4
I want to iterate now through the digital_IO 1-4, so to check the switch status of each row by reading digital_IO 5-8.
My simple question is: how to code this in ST??
I mean, how to call the unipi digital_IO using a variable?
Thanks a lot for support!
UniPi 1.1 communicates with external Rpi
I wonder if anyone ever tried to build up a communication between a unipi and a raspberry pi?
As I have a lack of digital ins on my unipi I would like to use the raspberry's GPIOs to forward a switch action to the unipi.
I already have two unipis which communicate over sscp, but I have no idea if and how this can be done with the raspberry.
Mervis 74371 - Analog Out Inverted?
I just updated my UniPi1.1 devices to the new 1.7OS using Mervis 74371 and recognized that the Analog Out values have been inverted:
formerly int=10.000 meant 0V and int=0 meant 10V
now int=10.000 means 10V and int=0 means 0V
Did this happen by accident?
BTW - is there a way to smoothen the AO changerate so I can get rid of the steps? (I see it in my light when dimming up and down)
see for instance here:
RE: AO Extension - right values
Found out that EMC was not an issue, but the LED power supply. I added a 10k resistor in parallel to the 0-10V input which fixed the 0V problem.
Only poor thing now is the bad behaviour of Mervis with the AO extension board. I added a ramp for smooth dimm up and down, but it's actually not smooth but rather stepwise:
Any idea how to fix? Maybe the problem comes from the transformation "to_uint(real)" ?
RE: AO Extension - right values
Yes, it’s the old AO add on shown in the picture.
I found out that I can adjust the output voltage from 0-10V with an uint from 0....4095. If I put it 4096 it jumps back to 0V.
Can you confirm ?
Also is it allowed to apply 24V as supply or will it damage the unit?
Right now I am facing the problem of noise injection into the cable at the analog out. Even though I use a PIMPF Cat7 cable (approx 2m long) at the AO, parallel running cables inject a voltage around 0.5...0.6V. I have a LED power supply connected which can be dimmed and which switches on/off at 0.6V and now the LEDs are blinking^^.
Any idea how to improve ? (I know.. I shouldn’t lay the cat7 along with power cables, but I didn’t expect so huge effects. However, I will try to find an alternative route :) )
AO Extension - right values
Hi, can anyone give me a hint how to control the AO Add-on? I mean, what uint value means +10V at the OUT, what uint value gives 0V at the OUT? right now it feels like jeopardy ^^ ..e.g. if I set the channel to uint=10000, I get 4.4V at the OUT. channel transformation is identity, power supply with 5V and 24V for AO
thanks in advance