Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Sunseeker
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Sunseeker

    @Sunseeker

    1
    Reputation
    7
    Posts
    369
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Sunseeker Follow

    Best posts made by Sunseeker

    • ESP8266 as (MQTT) Gateway with I2C Sensors

      I want to use an ESP8266 (nodemcu) as MQTT gateway but instead building a client for the same room use it as Client as well.

      However after connecting NRF24 I do not know how to connect my I2C sensors because D2 is used by the NRF already.

      I searched for it but did not find a clear or working information on this. So I really would appreciate someone can give me a working solution to build a gateway including I2C support with one chip (nodemcu, Wemos, ???).

      Staub as below but need WiFi for Gateway function tying to use a nodemcu.

      Room sensor:
      Board - Arduino Nano with Shield to provide proper power and PINs
      Radio - NRF24
      I2C - BME280 (Temp, Hum, Pres)
      I2C - tsl2561 (Lux)
      PIN - Mosfet (Nightlight with little LED)
      PIN - MH-SR602 (PIR/Motion)

      posted in Hardware
      Sunseeker
      Sunseeker

    Latest posts made by Sunseeker

    • ESP8266 as (MQTT) Gateway with I2C Sensors

      I want to use an ESP8266 (nodemcu) as MQTT gateway but instead building a client for the same room use it as Client as well.

      However after connecting NRF24 I do not know how to connect my I2C sensors because D2 is used by the NRF already.

      I searched for it but did not find a clear or working information on this. So I really would appreciate someone can give me a working solution to build a gateway including I2C support with one chip (nodemcu, Wemos, ???).

      Staub as below but need WiFi for Gateway function tying to use a nodemcu.

      Room sensor:
      Board - Arduino Nano with Shield to provide proper power and PINs
      Radio - NRF24
      I2C - BME280 (Temp, Hum, Pres)
      I2C - tsl2561 (Lux)
      PIN - Mosfet (Nightlight with little LED)
      PIN - MH-SR602 (PIR/Motion)

      posted in Hardware
      Sunseeker
      Sunseeker
    • RE: Connect raspberry and arduino nano with USB

      No prob. Thanks for your help so far.
      In the meantime I prepared a second SD card with raspian. It works there. So it's something with my image but technically works.
      I now check a virgin Domoticz. If that works I reinstall instead spend the night searching for a solution.
      Many thanks for your help!

      posted in Development
      Sunseeker
      Sunseeker
    • RE: Connect raspberry and arduino nano with USB

      This is my: /dev/tty*
      assuming AMA0 is my Razberry and not the USB. That's listed in Domoticz and works well since weeks.
      /dev/tty /dev/tty14 /dev/tty20 /dev/tty27 /dev/tty33 /dev/tty4 /dev/tty46 /dev/tty52 /dev/tty59 /dev/tty8
      /dev/tty0 /dev/tty15 /dev/tty21 /dev/tty28 /dev/tty34 /dev/tty40 /dev/tty47 /dev/tty53 /dev/tty6 /dev/tty9
      /dev/tty1 /dev/tty16 /dev/tty22 /dev/tty29 /dev/tty35 /dev/tty41 /dev/tty48 /dev/tty54 /dev/tty60 /dev/ttyAMA0
      /dev/tty10 /dev/tty17 /dev/tty23 /dev/tty3 /dev/tty36 /dev/tty42 /dev/tty49 /dev/tty55 /dev/tty61 /dev/ttyprintk
      /dev/tty11 /dev/tty18 /dev/tty24 /dev/tty30 /dev/tty37 /dev/tty43 /dev/tty5 /dev/tty56 /dev/tty62
      /dev/tty12 /dev/tty19 /dev/tty25 /dev/tty31 /dev/tty38 /dev/tty44 /dev/tty50 /dev/tty57 /dev/tty63
      /dev/tty13 /dev/tty2 /dev/tty26 /dev/tty32 /dev/tty39 /dev/tty45 /dev/tty51 /dev/tty58 /dev/tty7

      My assumption is that the Arduino should be listed here as an ttyACM1 or ttyUSB0 in addition.
      Resulting in being separately selectable in Domoticz assigning the mySensors PlugIn.

      posted in Development
      Sunseeker
      Sunseeker
    • RE: Connect raspberry and arduino nano with USB

      @Jan-Gatzke said:

      tail /var/log/messages

      With the nano an standard USB-cable:
      Jun 8 17:57:07 raspberrypi kernel: [34955.551271] usb 1-1.2: New USB device found, idVendor=067b, idProduct=2303
      Jun 8 17:57:07 raspberrypi kernel: [34955.551312] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      Jun 8 17:57:07 raspberrypi kernel: [34955.551332] usb 1-1.2: Product: USB-Serial Controller
      Jun 8 17:57:07 raspberrypi kernel: [34955.551351] usb 1-1.2: Manufacturer: Prolific Technology Inc.
      Jun 8 18:16:02 raspberrypi kernel: [36090.724307] usb 1-1.2: USB disconnect, device number 5
      Jun 8 18:16:18 raspberrypi kernel: [36106.324117] usb 1-1.2: new full-speed USB device number 6 using dwc_otg
      Jun 8 18:16:18 raspberrypi kernel: [36106.428007] usb 1-1.2: New USB device found, idVendor=067b, idProduct=2303
      Jun 8 18:16:18 raspberrypi kernel: [36106.428048] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      Jun 8 18:16:18 raspberrypi kernel: [36106.428070] usb 1-1.2: Product: USB-Serial Controller
      Jun 8 18:16:18 raspberrypi kernel: [36106.428089] usb 1-1.2: Manufacturer: Prolific Technology Inc.

      With the serial usb connector and arduino mini:
      Jun 7 21:44:30 raspberrypi domoticz: Domoticz is starting up....
      Jun 7 21:44:30 raspberrypi domoticz: Domoticz running...
      Jun 7 21:44:33 raspberrypi kernel: [ 29.747891] warning: process `colord-sane' used the deprecated sysctl system call with 8.1.2.
      Jun 7 21:44:33 raspberrypi kernel: [ 29.935666] Adding 102396k swap on /var/swap. Priority:-1 extents:9 across:339964k SSFS
      Jun 8 08:30:56 raspberrypi kernel: [ 983.234640] usb 1-1.2: USB disconnect, device number 4
      Jun 8 17:57:07 raspberrypi kernel: [34955.448468] usb 1-1.2: new full-speed USB device number 5 using dwc_otg
      Jun 8 17:57:07 raspberrypi kernel: [34955.551271] usb 1-1.2: New USB device found, idVendor=067b, idProduct=2303
      Jun 8 17:57:07 raspberrypi kernel: [34955.551312] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      Jun 8 17:57:07 raspberrypi kernel: [34955.551332] usb 1-1.2: Product: USB-Serial Controller
      Jun 8 17:57:07 raspberrypi kernel: [34955.551351] usb 1-1.2: Manufacturer: Prolific Technology Inc.

      posted in Development
      Sunseeker
      Sunseeker
    • RE: Connect raspberry and arduino nano with USB

      OK - so back to the beginning.

      On my Mac I had the same issue but fixed it with installing this driver:
      http://plugable.com/drivers/prolific
      After that the Nano as well as my USB2Serial adapter wit Ardu Mini showed up and uploading sketches worked.
      However it says these are included in Linux and good to go but my RPI does not show new Ports in /dev/tty*

      Any idea how this can be fixed. Software missing burn a new boot loader on Arduino? Need a nano with different Chip?

      posted in Development
      Sunseeker
      Sunseeker
    • RE: Connect raspberry and arduino nano with USB

      @Jan-Gatzke said:

      https://github.com/openhab/openhab/wiki/Serial-Binding

      Thanks for your quick answer.
      I saw photos with weak descriptions and thought it works with a plain USB cable...
      As my RPI uses /dev/ttyAMA0 for my Razberry shield I thought that might cause conflicts or damage something using the same port for different hardware/channels.

      Will try this evening without using USB by directly connecting the PINs.
      Domoticz offers a mySensors USB and Ethernet plug-in only.
      Guess I have to use the standard serial plug-in then in Domoticz.

      Any tipps on this would be welcome because after trying one day having no success I really need a Success.
      Anyway a good news is I can use a cheaper Arduino Mini if the USB is not required 😉

      Used Hardware: Raspberry Modell B, RaZberry-Modul (/dev/ttyAMA0), Arduino Nano, nrf24l01

      posted in Development
      Sunseeker
      Sunseeker
    • Connect raspberry and arduino nano with USB

      Hi,
      Am a newbie and lost in connecting my rpi with arduino via usb.
      I can upload sketches to the arduino after installing a new driver and could imagine I got a fake arduino not able to connect?
      However plug in the arduino to rpi does not show up a new /dev/tty device.
      Not fully clear this is how it works anyway so 2 questions.
      Can I use a standard usb cable to connect or do I have to use serial pins on arduino side?
      Is there an issue connection non fdti fake arduinos with raspberry.
      Any links or pictures of wiring would be welcome as I spend a day in figuring out why it's not working and bit frustrated 😞
      My goal is to use my sensors on arduino to connect via rf with domoticz.
      Domoticz running well already and also tha arduino side works well but not the connection.
      Million thanks, Marcus

      posted in Development
      Sunseeker
      Sunseeker