Hello,
I migrated from RPI to NUC to have more power on my system. I was using my RF transmitter on the RPI for turning some ‘klik aan - klik uit’ system on and off and it worked just fine.
I want to connect my Arduino board to the NUC and then connect my RF transmitter. can someone help me how to do this?
Already added the component to my configuration.yaml
file.
Found this topic but not exactly the same problem.
We cannot see your arduino board & NUC from here and you have told us NOTHING about what connections are available or what you tried that failed.
My configurationn.yaml file which worked for me using my Raspberry PI looked like this:
switch:
- platform: rpi_gpio
gpio: 8
switches:
KAKU 1:
protocol: 1
pulselength: 300
code_on: 21
code_off: 20
signal_repetitions: 15
KAKU 2:
protocol: 1
pulselength: 300
code_on: 16405
code_off: 16404
signal_repetitions: 15
I added this line to my configuration.yaml file and connected my USB device to my virtual machine:
arduino:
port: /dev/ttyUSB1
I don’t know how to transform the switch.yaml code to use my RF transmitter using Arduino on the NUC.
You w3ere using the gpio bus in the Raspberry Pi. I doubt the NUC has such an interface.
You need to figure out how you are going to connect your arduino to the NUC so it will communicate.Only you have the information needed. Perhaps an Arduino forum could help with the connection puzzle.
That’s why I want to connect an Arduino to my NUC via USB, Home assistant can connect to Arduino devices with usb and I am able to connect it to my instance:
The only thing I am looking for is to translate the code beneath to communicate with the RF transmitter:
switch:
platform: arduino
pins:
11:
name: Fan Office
12:
name: Light Desk
initial: true
negate: true
But I don’t know how to do this
That depends somewhat on your USB integration & OS driver.