ARDUINO DOWNLOAD
Re: ARDUINO DOWNLOAD
posted v 7.9.10
fixed "key error mrk1000"
now on plugin store w link to GitHub for plugin source
Karl
fixed "key error mrk1000"
now on plugin store w link to GitHub for plugin source
Karl
Re: ARDUINO DOWNLOAD
posted v 7.9.11
fixed "bad indent line 35"
Karl
fixed "bad indent line 35"
Karl
Re: ARDUINO DOWNLOAD -> where is arduino.ino sketch?
Hi Karl,
Can't seem to find the arduino.ino sketch in the downloaded zipfile, also checked older downloads...
Thanks for your help.
Best regards, Gerrit Jan
Can't seem to find the arduino.ino sketch in the downloaded zipfile, also checked older downloads...
Thanks for your help.
Best regards, Gerrit Jan
ARDUINO DOWNLOAD
viewtopic.php?f=178&t=14043
first post
Karl
https://www.dropbox.com/s/vu0l0x1vazprl ... 5.zip?dl=1
https://www.dropbox.com/s/5hvdh6r5zovay ... 6.zip?dl=1 added soft reset for no wifi contact for 5 minutes
first post
Karl
https://www.dropbox.com/s/vu0l0x1vazprl ... 5.zip?dl=1
https://www.dropbox.com/s/5hvdh6r5zovay ... 6.zip?dl=1 added soft reset for no wifi contact for 5 minutes
Re: ARDUINO DOWNLOAD
I got the Arduino Plugin connected to Arduino ESP16 board. Indigo can read sensor value from Arduino. Can Indigo write sensor values to Arduino? I'm using a z-wave temp sensor on Indigo and want to. display on Arduino TM1637 digital display. If possible, please advise.
Re: ARDUINO DOWNLOAD
the plugin can send commands to the arduino to set GPIOs up / down, amps up down, pulse etc.
you could use that to send other data, but then you will need to really change the receiving pgm on the arduino.
Karl
you could use that to send other data, but then you will need to really change the receiving pgm on the arduino.
Karl
Re: ARDUINO DOWNLOAD
I have a Fibaro FGBS-222 smart implant (z-wave) connected to DHT-22 Temp/Humidity device. Because the smart implant does not auto update Temp and Humidity values to Indigo app, I used a "Schedule" to set frequency to "send update request".
This code send temperature value to IndigoArduino script and is displayed on a TM1637.
Thanks
This code send temperature value to IndigoArduino script and is displayed on a TM1637.
Thanks
Code: Select all
import time
indigo.device.statusRequest(552277016) #DHT-22 Temperature
indigo.device.statusRequest(1982059710) #DHT-22 Humidity
time.sleep(1)
tempDev = indigo.devices[552277016].states["sensorValue"] # "055 - Sensor 1"
humidDev = indigo.devices[1982059710].states["sensorValue"] # "055 - Sensor2"
Fahrenheit = round((tempDev * 1.8) + 32,1)
indigo.variable.updateValue(85670234, value=unicode(Fahrenheit))
tempSensor = indigo.variables[85670234]
if tempSensor > 0:
sensorLog = "OK"
indigo.server.log("Updated varibale tempVar to "+str(tempDev) +" ºC - " + str(round(Fahrenheit,1)) + " ºF - "+sensorLog+" - Humidity - "+str(humidDev)+"%")
plug = indigo.server.getPlugin("com.karlwachs.arduino")
plug.executeAction("setPins" , #send temp value to IndigoArduino script
props ={
"CMD":"analogWrite"
,"Pin" :"D3"
,"aValue": tempDev # DHT-22 temp value
,"device": "Arduino Test"} # indigo device name
)
Re: ARDUINO DOWNLOAD
Ive tried the links in these messages but cannot find the arduino.ino file. The only thing i ever get is the plugin and i cant find the .ino file anywhere.
Robert
Robert
Re: ARDUINO DOWNLOAD
arduino.ino file(s) are in first post in viewtopic.php?f=178&t=14043 ~ 20 lines from top
Re: ARDUINO DOWNLOAD
Well, I figured out the problem, the instructions say arduino.ino but the file in the links is indigo.ino
Ive been looking for arduino.ino the whole time..
Setup Steps:
0.You must download the arduino.ino sketch attached in the zip file to your UNO/MEGA+ethernet/WIFI or ESP board . .. and set the proper IP number (and MAC# for ethernet) and or Wifi SSID/password in the sketch
Ive been looking for arduino.ino the whole time..
Setup Steps:
0.You must download the arduino.ino sketch attached in the zip file to your UNO/MEGA+ethernet/WIFI or ESP board . .. and set the proper IP number (and MAC# for ethernet) and or Wifi SSID/password in the sketch
Re: ARDUINO DOWNLOAD
added features / changes in v2022.9.11 @ 2023-06-25
===================================================
1. converted code to py3
replaced urllib with requests, changed exceptions
it compiles and runs, but not tested.
===================================================
1. converted code to py3
replaced urllib with requests, changed exceptions
it compiles and runs, but not tested.
Re: ARDUINO DOWNLOAD
added features / changes in v2022.9.12 @ 2023-06-26
===================================================
fixed some execption handling and read http response
===================================================
fixed some execption handling and read http response
Re: ARDUINO DOWNLOAD
Code: Select all
dded features / changes in v2022.9.16 @ 2023-08-03
===================================================
1. added in parse from arduino:
- response from arduino; b’>>rd:S1=xxx&rd:S2=xxx& … &S7=xxx’ in python3
- remove b (byte indicator)
- remove >> at beginning of string
- use last 2 char for command id as all cmds are only 2 char long.
2. reduced the error log dump when connection to arduino fails.