Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
T

ToniA

@ToniA
About
Posts
52
Topics
3
Shares
0
Groups
0
Followers
3
Following
0

Posts

Recent Best Controversial

  • Heatpump controller
    T ToniA

    Take a look at this topic on the Domoticz forum: http://www.domoticz.com/forum/viewtopic.php?f=34&t=8751

    Development

  • What is a good value for a watch dog timer?
    T ToniA

    Also the stock bootloader is broken so that in reboot, it sets the watchdog timer to a very small value (so that a reboot would happen before the sketch has done 'setup()'), but does not turn off the watchdog it it was enabled in the sketch -> eternal reset loop if you ever reboot from a watchdog-enabled sketch.

    Optiboot, MYSBootLoader etc. would work fine.

    Development

  • Has anyone tried software reset of an Arduino?
    T ToniA

    For whatever strange reason, the Arduino stock bootloader is broken, so that it will not disable the watchdog on startup, causing just an infinite reset loop. I'd recommend updating the bootloader with something like MYSBootloader or Optiboot.

    Development

  • AC IR code decrypting
    T ToniA

    This is what I have done as a hobby so far: https://www.openhardware.io/view/41/Heatpump-airconditioner-controller

    There's no Gree support in the HeatpumpIR library, though.

    Development

  • AC IR code decrypting
    T ToniA

    @dpressle said:

    @ToniA can you elaborate?

    Yes, on my AC IR decoder sketch I have decoder modules for different heatpumps. Like this:

    https://github.com/ToniA/Raw-IR-decoder-for-Arduino/blob/master/MitsubishiElectric.cpp

    So, write a new one, and add a call to it into https://github.com/ToniA/Raw-IR-decoder-for-Arduino/blob/master/rawirdecode.ino#L315. First you need to write a condition to recognize the protocol (like, from the first bytes + length etc). Then just start adding functionality, like decoding the temperature, then operating mode etc.

    Development

  • AC IR code decrypting
    T ToniA

    How about writing a new decode module into Raw-IR-decoder-for-Arduino? I find it very useful in trying to figure out how a certain A/C protocol works.

    Development

  • AC IR code decrypting
    T ToniA

    Would these help:

    https://github.com/ToniA/arduino-heatpumpir
    https://github.com/ToniA/Raw-IR-decoder-for-Arduino

    Development

  • incomingMessage is not initiated on relay sensor
    T ToniA

    The experience I have is from running the serial gateway on Sensebender (which is a 8MHz device, running on 3.3V). It just didn't work at all, and as soon as changed the serial speed to 38400 everything was just fine.

    http://wormfood.net/avrbaudcalc.php?bitrate=300%2C600%2C1200%2C2400%2C4800%2C9600%2C14.4k%2C19.2k%2C28.8k%2C38.4k%2C57.6k%2C76.8k%2C115.2k%2C230.4k%2C250k%2C.5m%2C1m&clock=8&databits=8

    It also doesn't matter whether you connect through USB or RS-232, it's still the same problem. Another 'nice' finding was that Arduino Nano has a hardware problem, it's not discovered as a USB device when Raspberry boots up. I had really interesting times when trying to use it as the serial gateway, works fine when plugged in when Raspberry is running, but it's lost on every boot.

    https://ketturi.kapsi.fi/2014/04/how-to-fix-moody-arduino-nano/

    Troubleshooting

  • Is it possible to connect a Pro Mini directly to Raspberry Pi GPIO for Gateway?
    T ToniA

    It's the /dev/ttyAMA0. See this: https://www.raspberrypi.org/forums/viewtopic.php?p=139945

    Domoticz runs as root (which is a really bad thing IMHO), so it has no problems with this.

    Hardware

  • Is it possible to connect a Pro Mini directly to Raspberry Pi GPIO for Gateway?
    T ToniA

    I've done the same with SenseBender, so it should work with Pro as well. You only need 4 wires, GND, Vcc, RX, TX.

    If it's a 3.3V model, it runs on 8 MHz, so you need to set the serial speed to 38400. At 115200 the serial speed is too much off to work reliably.

    Hardware

  • Raspberry Pi with Arduino Nano USB serial gateway
    T ToniA

    Hmm. I'm going to try this: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=59420

    Seems like I need to solder the pins 25 & 26 together on the USB chip of the Nano. Now my Duemilanove is failing to connect on boot as well...

    Troubleshooting

  • Raspberry Pi with Arduino Nano USB serial gateway
    T ToniA

    I'm trying to use Arduino Nano as serial gateway on RPi 2, but I'm stuck with the Nano not being detected when Raspberry boots up. To make it weirder, it works fine if I plug the Nano in when the RPi is already running... A Duemilanove board works fine, but I was hoping for something smaller.

    Does anybody have any idea what's wrong with this setup?

    Duemilanove is detected fine on boot (dmesg):

    [    3.864401] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
    ...
    [    4.013350] usb 1-1.2: New USB device found, idVendor=0403, idProduct=6001
    [    4.013363] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    4.013372] usb 1-1.2: Product: FT232R USB UART
    [    4.013381] usb 1-1.2: Manufacturer: FTDI
    [    4.013389] usb 1-1.2: SerialNumber: A101KWLO
    

    ... but the Nano isn't:

    [    4.115330] usb 1-1.4: new full-speed USB device number 5 using dwc_otg
    ...
    [    4.205056] usb 1-1.4: device descriptor read/64, error -32
    ...
    [    4.401434] usb 1-1.4: device descriptor read/64, error -32
    
    

    Also 'lsusb' doesn't show it.

    But if I plug it in into a running RPi, it works just fine, until it's again lost on the next reboot:

    [  122.544930] usb 1-1.4: new full-speed USB device number 10 using dwc_otg
    [  122.673685] usb 1-1.4: New USB device found, idVendor=0403, idProduct=6001
    [  122.673714] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [  122.673731] usb 1-1.4: Product: FT232R USB UART
    [  122.673746] usb 1-1.4: Manufacturer: FTDI
    [  122.673761] usb 1-1.4: SerialNumber: AL01GVNR
    [  122.682518] ftdi_sio 1-1.4:1.0: FTDI USB Serial Device converter detected
    [  122.682797] usb 1-1.4: Detected FT232RL
    [  122.683895] usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB1
    
    Troubleshooting

  • Node are not receiving messages from domoticz
    T ToniA

    8 MHz Arduinos absolutely need to use lower baud rate than 115200. The baud rate is generated from the internal clock, and at 8 MHz 38400 bps is the highest baud rate close enough to the standard.

    Domoticz domoticz relay incomming messages

  • Size of icons in forum mobile view
    T ToniA

    OK, issue reported: https://github.com/NodeBB/nodebb-theme-persona/issues/244

    General Discussion

  • Size of icons in forum mobile view
    T ToniA

    It's not the same thing. The title goes to the first post of the topic, and the arrow goes to the last post.

    General Discussion

  • Size of icons in forum mobile view
    T ToniA

    This is a really nice forum in mobile phone, but the size of the new posts icon is awfully small... I mean the right-pointing arrow on the right. Any chance to forward this feedback to the forum developers?

    0_1456465647241_wp_ss_20160226_0001.jpg

    General Discussion

  • Sensebender Micro as gateway on raspberry pi
    T ToniA

    Yes, it's about the baud rate. 38400 works for me, and I even made a pull request (not yet merged, though): https://github.com/mysensors/Arduino/pull/391

    Recent Domoticz beta's also have a feature to select the baud rate for MySensors serial gateway (default 115200, 38400 as an alternative). This of course needs to match with the baud rate on the gateway itself.

    Development

  • RF24_PA_LEVEL and options
    T ToniA

    I was just yesterday testing a system I'm going to install on the summer cottage, and noticed that I get hardly 2 meters range. Then I noticed the sketch has 'RF24_PA_LOW' by default.

    Is it OK/safe etc. to use the highest PA level for the PCB antenna versions of nRF24 ?

    Feature Requests

  • [SOLVED] Trash in serial monitor when battery powering... (trying to troubleshoot a hang)
    T ToniA

    Are you using the 115200 baud rate (I guess you are)? Try lowering the baud rate down to 38400 if you are running on 8 MHz. On 1 MHz you may need to go down to 4800. Well, this doesn't explain why you get total garbage, but at 115200 you get corrupted characters every once and a while, frequently enough to make serial transfer from PC to Arduino a mess.

    See these tables:
    http://wormfood.net/avrbaudcalc.php?postclock=8&hidetables=1
    http://wormfood.net/avrbaudcalc.php?postclock=1&hidetables=1

    For the same reason you can't use Sensebender or Pro Mini 3.3V as the serial gateway, unless you set the baud rate down to something like 38400.

    Troubleshooting

  • Physically small Gateway (to fit inside Raspberry Pi case)
    T ToniA

    I made a pull request. The sketch GatewaySerial.ino now sets the serial speed to 38400 if the Arduino is running on 8MHz clock speed.

    https://github.com/mysensors/Arduino/pull/391

    EDIT: My pull request was accepted into the Domoticz master branch :)

    Development
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular