Skip to content

Hardware

Talk about fun sensor hardware, MCUs, PCBs and how to power your sensors here.
1.8k Topics 18.4k Posts
  • TI CC2541 no GATT communication

    4
    0 Votes
    4 Posts
    1k Views
    mfalkviddM
    @victus I haven't seen anyone using CC2561 - almost everyone is using AtMega328 or ESP8266. MySensors does not utilize ble. Therefore this might not be the best forum to ask for advice, unfortunately. But there are a lot of hardware nerds around so you might get lucky.
  • 0 Votes
    7 Posts
    3k Views
    tbowmoT
    Probably a lower baudrate would fix things. You need to build a new bootloader with correct baudrate though. I can't remember which crystal I designed to be used on the sensebender. It was with 32khz oscillator in mind though, as there is no external load capacitors (you need to add them if you want to use 8mhz crystal)
  • Ethernet Gateway with W5100: radio error [solved]

    3
    0 Votes
    3 Posts
    2k Views
    bisschopsrB
    @mfalkvidd Thx: sometimes life is so simple. I totally did not notice that this slipped in... Problem solved! And to answer my other question myself: I don't need to enable softspi in the MyConfig.h I guess. Works without it apperently.
  • Dallas OneWire questions

    6
    0 Votes
    6 Posts
    3k Views
    F
    This is how I solved it with identification(DeviceAddress) https://forum.mysensors.org/topic/4143/about-ds18b20-onewire
  • Arduino UNO and RFM69 - level converter

    11
    0 Votes
    11 Posts
    4k Views
    X
    @Yveaux said: @xefil does this Ethernet shield also have an SD card slot? If so, it shares the spi bus with the rfm. You should make sure the SD card chip-select line is high, before the mysensors library is initialized (implement the pin initialization in the before()-method). Otherwise the SD card communication will interfere with the rfm communication. Yes, it has a SD card module as well. How to disable it? I've tried it so: void before() { // disable SD card pinMode(4, OUTPUT); digitalWrite(4, HIGH); } Actually I get simply this: 0;255;3;0;9;Starting gateway (RRNGA-, 2.0.0) 0;255;3;0;9;TSM:INIT 0;255;3;0;9;!TSM:RADIO:FAIL 0;255;3;0;9;!TSM:FAILURE 0;255;3;0;9;TSM:PDT And what is that for? Does it help? // W5100 Ethernet module SPI enable (optional if using a shield/module that manages SPI_EN signal) //#define MY_W5100_SPI_EN 4 Thanks! Simon This is the whole code again I'm using now: #include <SPI.h> // Enable debug prints to serial monitor #define MY_DEBUG // Enables and select radio type (if attached) //#define MY_RADIO_NRF24 #define MY_RADIO_RFM69 #define MY_GATEWAY_MQTT_CLIENT // Set this nodes subscripe and publish topic prefix #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway2-out" #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway2-in" // Set MQTT client id #define MY_MQTT_CLIENT_ID "mysensors-2" // W5100 Ethernet module SPI enable (optional if using a shield/module that manages SPI_EN signal) //#define MY_W5100_SPI_EN 4 // Enable Soft SPI for NRF radio (note different radio wiring is required) // The W5100 ethernet module seems to have a hard time co-operate with // radio on the same spi bus. #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD) #define MY_SOFTSPI #define MY_SOFT_SPI_SCK_PIN 14 #define MY_SOFT_SPI_MISO_PIN 16 #define MY_SOFT_SPI_MOSI_PIN 15 #endif // When W5100 is connected we have to move CE/CSN pins for NRF radio #define MY_RF24_CE_PIN 5 #define MY_RF24_CS_PIN 6 // Enable these if your MQTT broker requires usenrame/password //#define MY_MQTT_USER "username" //#define MY_MQTT_PASSWORD "password" // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP) #define MY_IP_ADDRESS 192,168,1,52 // If using static ip you need to define Gateway and Subnet address as well #define MY_IP_GATEWAY_ADDRESS 192,168,1,1 #define MY_IP_SUBNET_ADDRESS 255,255,255,0 // MQTT broker ip address. #define MY_CONTROLLER_IP_ADDRESS 192,168,1,50 // The MQTT broker port to to open #define MY_PORT 1883 /* // Flash leds on rx/tx/err #define MY_LEDS_BLINKING_FEATURE // Set blinking period #define MY_DEFAULT_LED_BLINK_PERIOD 300 // Enable inclusion mode #define MY_INCLUSION_MODE_FEATURE // Enable Inclusion mode button on gateway #define MY_INCLUSION_BUTTON_FEATURE // Set inclusion mode duration (in seconds) #define MY_INCLUSION_MODE_DURATION 60 // Digital pin used for inclusion mode button #define MY_INCLUSION_MODE_BUTTON_PIN 3 // Uncomment to override default HW configurations //#define MY_DEFAULT_ERR_LED_PIN 16 // Error led pin //#define MY_DEFAULT_RX_LED_PIN 16 // Receive led pin //#define MY_DEFAULT_TX_LED_PIN 16 // the PCB, on board LED */ #include <Ethernet.h> #include <MySensors.h> void before() { // disable SD card pinMode(4, OUTPUT); digitalWrite(4, HIGH); } void setup() { } void presentation() { // Present locally attached sensors here } void loop() { // Send locally attech sensors data here }
  • Problem with RFM69 on homemade board

    15
    0 Votes
    15 Posts
    6k Views
    voximdoV
    Thank you very much for suggestions. I will try to check that over the weekend, then I will let you know about my results. In the meantime if someone has any other ideas why it doesn't work or how to debug it somehow I would appreciate.
  • Manufacturing and selling proto boards

    12
    0 Votes
    12 Posts
    4k Views
    sky2000S
    Thanks for all your comments :) I would like to start as small and cheap as possible but to be able to scale it up. It is on purpose to not have kickstarter in mind. I even don't want to calculate a big business case.. But I would need to if I have to pay for all the certifications and USB id. So, I am still not sure if it would work with this component/evaluation thing using a big disclaimer. If so, I could think about assembling and selling it on my own. But I only know the Chinese services - but have not tried them for assembling yet. I think any service in Germany would be too expensive.. And all the selling/shipping part.. is this easier on eBay? I think I have to look around much more.. Or let Seeed or Itead produce and sell it as ODM. Then they would be responsible for everything!?. But I don't know how flexible this works and how much I would get in the end. I think I try to go this way.. first for assembly.. I think the series on hackaday does not cover the real interesting things on selling a kit/electronic part - so far. But this is a good hint. I will ask some well known names out there :) Too bad, that I don't know any kind of incubator here in northern Germany. Yes, the board is powered by 5V like from the USB port which is directly connected to the MCU. So, I need to burn a bootloader otherwise someone could only program it with a 10 pin SWD Cortex programmer. But thanks for the pid.code - I have not known/found this before. This would be really great :) So, still a lot to think about and not enough time.. and I even still don't have a name :-D but things are going on.. My real dream would be to create such an "all in service" to realise all these nice hobby projects out there! Maybe hardware.io will be there one day :)
  • Use Nrf24 with Mysensor and an Arduino Mega 2560

    3
    0 Votes
    3 Posts
    1k Views
    CrankyCoderC
    I have one built at home but for some reason it fails so often on FPAR No idea why.
  • 1mhz hardware

    27
    0 Votes
    27 Posts
    8k Views
    CrankyCoderC
    @cimba007 Thanks for the details. Let me get you back some info. yes, my buttons are setup like the pullup example image i didn't think the multimeter would do it, but at this point i am willing to try anything :) I will pull my mini tonight and remove everything and do a test. my code only wakes up when button is pressed or every 24 hours. so it shouldn't come on while testing. Ill try with my code and with the sleep example you referenced. Thanks!!!!
  • Replacing a DS2423 with a mysensors sensor, Possible?

    3
    0 Votes
    3 Posts
    2k Views
    Martin TellblomM
    Thank you , Ill try that. I missed that one I think my giving about 100 pulses / litre.
  • [SOLVED] Long distance radios not working with mySensors code (nrf24l01+)

    3
    0 Votes
    3 Posts
    1k Views
    edsteveE
    Hey Vidd, Thanks for your perfect answer and the diagram. Useful info for newbie like me :) I tried external power for the radio and it worked right away. I got mislead from the fact that the radio worked with a simple test code but not with mysensors code.
  • Read LED full size works, smd does not

    2
    0 Votes
    2 Posts
    880 Views
    Martin TellblomM
    Found the problem myself :) There was another resistor on the other side of the PCB. If I connect the cable there instead it works
  • Looking for photodiode circuit (like the cheap ones on aliexpress)

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Nrf24 mini smd + Nrf24l01+

    8
    0 Votes
    8 Posts
    6k Views
    WodianW
    @Nca78 Many thanks for your constructive feedback :D I've added the additional feedback on Aliexpress and contacted the supplier that these NRF24L01 modules arent working so Ill inform anyone that buys/sells those items. Will now order good clones on Aliexpress :package: Kind Regards, Wodian
  • Has anyone tried to mount mySensors into this DIY led lig bulp?

    1
    0 Votes
    1 Posts
    663 Views
    No one has replied
  • Read color of a LED?

    12
    0 Votes
    12 Posts
    3k Views
    cimba007C
    If you are open for some expriments: http://www.instructables.com/id/LEDs-as-light-sensors/ This might even be double usefull as different LED-Colors as "light sensor" would react different. e.g. for your red/green led .. if you pick a red led as "light sensor" you might get a much stronger reading then from the green led and hopefully a distinctive zero reading if none of them is on.
  • Hardware debouncing with 74HC14?

    2
    0 Votes
    2 Posts
    3k Views
    T
    http://www.jeremyblum.com/2011/03/07/arduino-tutorial-10-interrupts-and-hardware-debouncing/ I followed this tutorial and it works flawlessly http://www.jeremyblum.com/2011/03/07/arduino-tutorial-10-interrupts-and-hardware-debouncing/
  • Ultra-slim NRF24L01

    4
    0 Votes
    4 Posts
    1k Views
    Nca78N
    Also, when the seller writes "similar" you can expect the worst compatibility problems ;)
  • Mysensors on ESP8266- ESP01?

    6
    0 Votes
    6 Posts
    6k Views
    stofakillerS
    @Dwalt Hi, Im also looking for documentation on this :-) Regards, Jan
  • ESP8285

    5
    4 Votes
    5 Posts
    3k Views
    Nca78N
    @scalz right I'm always thinking about the nrf24 because that's all I use at the moment, but for sure with rfm radios having hardware encryption that's much safer.

19

Online

11.7k

Users

11.2k

Topics

113.2k

Posts