Navigation

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

    Nca78

    @Nca78

    Hardware Contributor

    668
    Reputation
    1452
    Posts
    4789
    Profile views
    8
    Followers
    0
    Following
    Joined Last Online
    Location Saigon

    Nca78 Follow
    Mod Hardware Contributor Hero Member

    Best posts made by Nca78

    • Clean looking sensor node

      Hello,

      one of my big concerns with sensors is to have something good looking without my wife asking me what this ugly plastic box is. After failed searches for good looking and small enclosures, I decided to search for electronic items and only keep their boxes. I have tried with a tiny 333cm 2$ mp3 player and managed to fit a jmodule and sensors + cr2032 inside. But the plastic is still looking too cheap.
      Then I discovered those great looking wireless chargers and bought 2 different models, they are pretty bad at charging but they look really good. Only problem: they are flat. No way to put a jmodule inside so I went for an EasyPCB and removed the plastic stripes on the headers to make the pcb as flat as possible. I choosed the smaller (but thicker) black one as in the other the PCB + NRF24 was already too thick (because of the crystal).
      https://www.aliexpress.com/item/QI-Wireless-Charger-Charging-Pad-for-Samsung-Galaxy-S7-S6-edge-Note-5-Nokia-HTC-8X/32694769031.html
      https://www.aliexpress.com/item/Factory-price-Qi-Wireless-Charger-Charging-Pad-for-LG-V10-Other-Qi-Phone-Mmar25/32639543557.html

      To fit the pcb I had to remove the right part, and then cut the corners. Still, the antenna of the NRF 24 was too much so I had to cut it too ๐Ÿ˜„ I put a 10cm wire instead, soldered at the beginning of the cut pcb antenna and ... it works really well !
      Unfortunately I couldn't fit a CR2032 after putting the PCB, so I decided to experiment with alkaline button cells, the more convenient solution was to take tiny ones (LR41/AG3) and put them between power connectors of the PCB.
      I also added a bicolor led (green / red) aligned with the led window of the charger, it blinks at each sending loop, wether data is sent or not so I know it's still running. When battery level is high it blinks green, when it gets low it will blink red color so I know it's time to check if I have spare batteries. Also, voltage drop is smaller on red led so it's brighter, green led is dim even at full battery and would be invisible with low battery.

      I use a SHT21 sensor and at the moment I send every minute (if values changed) the temperature, humidity, battery level (%) and battery voltage (to have history). With the led blinking that's a lot to bear for LR41 batteries (rated between 25-30 mAh) but it's done on purpose, to see how fast they get empty.

      The PCB ended up pretty atrocious as I did many trials and errors with it (and kept long pins 11,12,13,RST to program the board and have to bend them to fit inside the box) but fortunately when I close the box everything is hidden and the sensor really looks good. With the led flashing it really feels like a commercial sensor you could buy in a shop. I put the sensor not too far from the usb plug hole, but there are also a opening all around the bottom of the enclosure, so I have no visible difference in measure temperature/humidity when I open or close the box.
      Next step is a dedicated PCB to have a clean board and be able to fit bigger coin cell(s).

      Wow I'm typing too much ๐Ÿ˜„ Here are the pictures...
      0_1475766817875_IMAG0975.jpg
      0_1475767029388_IMAG0980.jpg
      0_1475766768119_sensor_light.jpg

      posted in Enclosures / 3D Printing
      Nca78
      Nca78
    • RE: Fewer home automation postings? What's behind it?

      Everyone is busy reading your NRF5 thread @NeverDie ๐Ÿ˜„

      posted in General Discussion
      Nca78
      Nca78
    • RE: What did you build today (Pictures) ?

      Today I (finally) finished a full working version of that old Livolo 3 buttons switch. I removed the RGB led on the central button as it's not visible, but the basic switch functionality with buttons/relays and blue/red status leds runs fine.
      It's running with MYSBootloader, it's really convenient to update without having to switch of the fuse and unmount everything.
      0_1515402234037_IMAG2135.jpg

      A (quick) video, touch sensibility is perfect now, I'm really happy with it !
      MySensored Livolo 3 buttons Switch - v3 โ€“ 00:11
      โ€” Nicolas Cambier

      posted in General Discussion
      Nca78
      Nca78
    • RE: Fewer home automation postings? What's behind it?

      I have to agree with @skywatch and a few others here, MySensors is relatively easy to start with using the documentation, you wire your pro mini & radio for gateway and sensor and you're running your first sensor in no time.
      But as soon as you want to make things a bit more advanced, you face a lot of challenges that the doc on the website and suggested components make harder to solve :

      • PA/LNA radio that fail, need wrapping in foil to have decent performance etc etc I'm pretty sure this is the most frequent cause of failure for MySensors network.
      • examples with DHT sensors that are not convenient for battery usage => use of step up converters that create a whole set of new problems and unreliability
      • PIR example with SR501 that runs at 5V so you need to alter them to run at lower voltage (3.3V) that's still not so convenient and they become unstable (triggered by radio tx/rx)

      I'll make a list of suggestions to improve the docs, it will probably include writing a few more examples also, and some tutorials for a few things that are easy in fact easy to do but can seem hard from the outside like flashing bootloader on a pro mini or OTA update.

      Currently I have restarted to test my NModule "shields", I will improve and/or fix them and probably convert the most useful ones to MySX Connector.

      posted in General Discussion
      Nca78
      Nca78
    • RE: What did you build today (Pictures) ?

      Working on clearing up the backlog of unfinished NModule shields, today I finished to test the dual touch button shield, made a script to use it as on/off button or as dual button with short press = on and long press = off, as seen below as a dual scene controller.
      Scene controller with NModule dual touch button โ€“ 00:23
      โ€” Nicolas Cambier

      I made a box so it can be easily customized depending on what you use it for. Unfortunately internet is too bad at the moment in Vietnam to use Fusion 360 so I made it with 123D Design which is less convenient and it's not really high-end assembly ๐Ÿ˜„

      0_1512964810931_IMAG2085.jpg
      0_1512964835281_IMAG2084.jpg

      posted in General Discussion
      Nca78
      Nca78
    • RE: What did you build today (Pictures) ?

      Not related to MySensors but I also assembled a first version of a battery powered led light, it's small and cheap and I will assemble a bunch to put around my home when there are some power cuts in evening/night. I'm using 3020 leds and they emit a lot of light for their small size, even with low current so I expect to get around 2 hours of battery life with the cheap aliexpress 16340 batteries, and way more than needed with the 18650 cells salvaged from my old laptop battery.
      My first board with a li-ion charger and it is working well, now I'm waiting for the battery protection ics (cheap DW01 from AliExpress) to arrive as my batteries are not protected.

      2_1516277652209_IMAG2158.jpg 1_1516277652209_IMAG2159.jpg 0_1516277652206_IMAG2161.jpg

      posted in General Discussion
      Nca78
      Nca78
    • RE: What did you build today (Pictures) ?

      @dbemowsk said in What did you build today (Pictures) ?:

      The nice thing about owning a 3D printer is that I don't have to buy enclosures any more. I just have to buy rolls of plastic. The sky is the limit when you have a 3D printer. I do like that enclosure though.

      Can't agree more, made a quick box for the lights with "crystal" PLA. You need a lot of imagination to believe it's crystal, but it's nice for a light enclosure as it acts as diffuser.
      1_1516534061594_IMAG2164.jpg 0_1516534061592_IMAG2165.jpg

      posted in General Discussion
      Nca78
      Nca78
    • RE: What did you build today (Pictures) ?

      Today, a 5uA always on display with a PCF8553 LCD driver and a GDC1038 LCD from GoodDisplay. Power consumption varies with voltage but mostly with what segments are on/off, but at 3.3V with segments on to display data on all parts of display (2*4 digit numbers and 3 letters) it's always below 6uA.

      cbcf188c-16f4-4b62-be82-a6aaab2cbade-image.png

      Not sure why the Youtube video won't integrate as it should, but here it is for a more animated version:
      Arduino ultra low power LCD (5uA) โ€“ 00:21
      โ€” NicolasVietnam

      posted in General Discussion
      Nca78
      Nca78
    • RE: What did you build today (Pictures) ?

      Today I finished to fix failed soldering (too old solder paste made a mess ๐Ÿ˜ข ) on the "motherboard" of my air quality sensor.
      It's based on ESP32, uses a charging IC with power path so it can run on batteries for around a day or stay plugged without destroying the battery, step down from USB/battery to get VCC, storage on I2C EEPROM, flash and/or ยตSD card (depending on use case), one SK6812 mini RGB led as indicator, a small 240*240 IPS LCD (backlight driven directly by ESP32 pin in high drive capability mode), a 3 way switch for basic user interface + footprint for PAJ7620 gesture recognition module, accelerometer and I2C IO expander to manage the 3 way switch and interrupts from sensor modules.
      Sensor modules will be added on top, connected using an FPC connector. At the moment I made only one sensor PCB able to manage usual PM, CO2 and formaldehyde sensors. Only one sensor per sensor board where an attiny841 manages the UART sensor and convert it to I2C, it also manages the 5V step up to power the sensor.
      On the main board I also added an NRF24 footprint so with the same PCB I will be able to make a gateway with integrated battery backup.

      I'm pretty happy with the relatively well aligned components (no, I don't have OCD ๐Ÿ˜„ ) , too bad I had to unsolder, clean and re-solder each component as it now looks botched up. But at least everything (except a missing connection on ยตSD card, hence the blue wire) is working,
      475bc52b-5bba-450f-aaa0-74eac94a1fb3-image.png

      LCD test showing jpgs from SD card
      c6334b2c-acf5-480f-aca3-c7ad5f191def-image.png

      posted in General Discussion
      Nca78
      Nca78
    • RE: ๐Ÿ’ฌ jModule

      @EddyG said:

      Any news on the new board? I am really interested.

      I'm testing a first version right now ๐Ÿ™‚
      It's running fine but there are some annoying defaults.
      I'm making improvements to the PCB now and I will publish on openhardware.io in the coming weeks.

      I'm using SMD NRF 24 with antenna outside for better reception. Radio capacitor is SMD also but big size (1206) so easy to solder.
      0_1483065250380_onlyradio.jpg

      This is what the assembled board will look like, it takes a bit more surface than jModule but as you can see it's really flat, around 7mm and less than 6mm if you remove the big reset button on the pro mini.
      0_1483065357725_IMAG1205 (2).jpg

      posted in OpenHardware.io
      Nca78
      Nca78

    Latest posts made by Nca78

    • RE: Commenting and chat seem to be broken

      @NeverDie said in Commenting and chat seem to be broken:

      after wiping and re-installing Windows 10 fresh

      Do you really do that just for a problem on one website with one browser ? That's a bit extreme ๐Ÿ˜„

      posted in General Discussion
      Nca78
      Nca78
    • RE: BTE16-19 PIR Sensor

      @skywatch yes but you don't need a module to use it, it's including a regulator and will probably use much more power than the sensor alone.

      posted in General Discussion
      Nca78
      Nca78
    • RE: BTE16-19 PIR Sensor

      @skywatch there are some "all integrated" PIR sensors, with all electronic in the "can" so they don't need external components, and they use around 12-15uA, it's low enough for battery power. Check AM312 for example.

      posted in General Discussion
      Nca78
      Nca78
    • RE: BTE16-19 PIR Sensor

      Hello, from the pictures it's based on the EG4002 PIR controller
      https://cdn-3a4dd4ab.ozdisan.com/ETicaret_Dosya/518010_780564.PDF

      Typical power consumption 65uA @5V and 35uA@3V for controller only, so ... not very interesting it seems.

      posted in General Discussion
      Nca78
      Nca78
    • RE: What's the best way to set up lots of binary sensors on a single Arduino?

      Hello, if you want to keep it simple and you have no problem soldering SMD components (I don't think it's available as module...), you can use PCA9555, you can use up to 8 of them so 128 inputs/outputs.
      Advantages:

      • no need to use an arduino mega any more, a simple atmega328 will have enough pins
      • it has an interrupt pin that will switch on when value of any input changes, then you can just check the values of input and check which one has changed. This also solves the problem of debouncing, interrupt will only be triggered once before you read the value of inputs, so you just need to wait a bit before you read the values and you have no problem.
      • low power, only 1uA/IC. If you switch from arduino mega to atmega328 you will probably save more power than what the PCA9555s will use
      posted in Development
      Nca78
      Nca78
    • RE: What's the best way to set up lots of binary sensors on a single Arduino?

      Hello, did you miss the MyMessage.sensor in the public attributes of MyMessage ?
      https://www.mysensors.org/apidocs/classMyMessage.html

      You can just create one message, then before you send it set the sensor attribute then set the value and send. No need to create 32 instances of the message object.

      posted in Development
      Nca78
      Nca78
    • RE: Favorite hand solderable radio chip?

      @monte said in Favorite hand solderable radio chip?:

      @NeverDie so is it directly compatible with nordic's protocol? Can it be used as drop-in replacement for nrf24?

      From MyConfig.h (obviously the assumed vendor is wrong ๐Ÿ™‚ )
      There are some settings also to fix the ACK that is reversed compared to NRF24.

      /**

      • @defgroup RF24SettingGrpPub RF24
      • @ingroup TransportSettingGrpPub
      • @brief These options are specific to the RF24 family of wireless transport modules.
      • The following chips are supported by this driver:
      • | Vendor | Chip
      • |--------------------------|----------
      • | Nordic Semiconductor | nRF24L01
      • | | nRF24L01+
      • | Beken Corporation | BK2401
      • | | BK2421
      • | | BK2491
      • | Hope Microelectronics | RFM70
      • | | RFM73
      • | Panchip Microelectronics | XN297
      • | Silicon Labs(?) | SI24R1
      • @{
      posted in Hardware
      Nca78
      Nca78
    • RE: Favorite hand solderable radio chip?

      @monte said in Favorite hand solderable radio chip?:

      @NeverDie stencil would help, for sure. But I am talking bare minimum. You tin the pads a little, so they are like bumps, then apply gel flux, put the IC aligned to the pins and reflow it with hot-air gun. That may be not the best practice, but it works, if you need to solder few IC's.

      I confirm it works, if you don't put too much solder. I do like this with TSOP style packages too, because it's way easier than using a soldering iron.

      posted in Hardware
      Nca78
      Nca78
    • RE: Next generation dust sensor for MySensors

      @skywatch here you go :
      https://github.com/Nca78/NcaPMSensorLight

      @Sebex in case you're still looking for a code, you might be interested.

      posted in General Discussion
      Nca78
      Nca78
    • RE: Next generation dust sensor for MySensors

      Hello @skywatch, I will put a library online today. Sorry for the long delay.

      posted in General Discussion
      Nca78
      Nca78