Skip to content

Hardware

Talk about fun sensor hardware, MCUs, PCBs and how to power your sensors here.
1.8k Topics 18.3k Posts
  • Sensors on Gateway?

    12
    0 Votes
    12 Posts
    6k Views
    tbowmoT
    @Alex-B-Goode The code that made it possible to have sensors directly on the GW, is only available in development branch, and haven't been migrated to master branch. You could always emulate the serial protocol on the GW your self, and inject that in the sensor data stream. But depending on the MCU you are using, you might run your head against the flash size wall..
  • How do I play audio?

    6
    0 Votes
    6 Posts
    3k Views
    hekH
    dog.mp3
  • Can local sensors log data?

    19
    0 Votes
    19 Posts
    7k Views
    tbowmoT
    @Alexander-Voronin Yes, you can use the watchdog, and wake up periodically, but it can never be used for time critical things. For example, my sensebenders, I have them sleeping 1 minute. But it varies between 50 and 70 seconds.. So can't be used to keep track of real time..
  • LE33ACZ problems

    7
    0 Votes
    7 Posts
    5k Views
    M
    @Aloha I am having the same issue. If I disconnect the regulator I get a radio error. With it connected, nothing appears in serial monitor at all. Did you ever figure it out?
  • DevDuino v2.2 with EEPROM

    devduino rf24 nrf24l01+
    10
    0 Votes
    10 Posts
    4k Views
    O
    Here is the code works with devDuino v2.2 It shows how all of the sensors on board (via com port) and also makes it possible to (expect) to download the firmware over the air. (for example through MYSController) /* This sketch is for a devDuino SN v2.2 with the support OTA http://www.seeedstudio.com/wiki/DevDuino_Sensor_Node_V2.2_(ATmega_328) and MySensors 1.5 For testing all the equipment, press the button D4 when a voltage is applied. This sketch is a modification of code written Version 1.3 - Thomas Bowman Mørch for sensor Sensebender Micro http://www.mysensors.org/hardware/micro modified 18 December 2015 by greengo */ #include <MySensor.h> #include <SPI.h> #include "utility/SPIFlash.h" #include <EEPROM.h> #include <sha204_lib_return_codes.h> #include <sha204_library.h> // Define a static node address, remove if you want auto address assignment //#define NODE_ADDRESS 2 #define RELEASE "0.01" #define TEST_PIN 4 // Button D4 #define TEMP_SENSE_PIN A3 // Input pin for the Temp sensor MCP9700 #define LED_PIN 9 // LED #define ATSHA204_PIN A2 // ATSHA204A const int sha204Pin = ATSHA204_PIN; atsha204Class sha204(sha204Pin); SPIFlash flash(8, 0x1F65); MyTransportNRF24 transport(7, 6); MySensor gw(transport); // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin 9 as an output. pinMode(LED_PIN, OUTPUT); Serial.begin(115200); Serial.print(F("devDuino V2.2")); Serial.println(RELEASE); Serial.flush(); // First check if we should boot into test mode pinMode(TEST_PIN,INPUT); digitalWrite(TEST_PIN, HIGH); // Enable pullup if (!digitalRead(TEST_PIN)) testMode(); // Make sure that ATSHA204 is not floating pinMode(ATSHA204_PIN, INPUT); digitalWrite(ATSHA204_PIN, HIGH); digitalWrite(LED_PIN, HIGH); #ifdef NODE_ADDRESS gw.begin(NULL, NODE_ADDRESS, false); #else gw.begin(NULL,AUTO,false); #endif digitalWrite(LED_PIN, LOW); Serial.flush(); Serial.println(F(" - Online!")); gw.sendSketchInfo("devDuino SN V2.2", RELEASE); } // the loop function runs over and over again forever void loop() { gw.process(); } /**************************************************** * * Verify all peripherals, and signal via the LED if any problems. * ****************************************************/ void testMode() { uint8_t rx_buffer[SHA204_RSP_SIZE_MAX]; uint8_t ret_code; byte tests = 0; digitalWrite(LED_PIN, HIGH); // Turn on LED. Serial.println(F(" - TestMode")); Serial.println(F("Testing peripherals!")); Serial.flush(); Serial.print(F("-> MCP9700 : ")); Serial.flush(); if (analogRead (TEMP_SENSE_PIN),HIGH ) { Serial.println(F("ok!")); tests ++; } else { Serial.println(F("failed!")); } Serial.flush(); Serial.print(F("-> Flash : ")); Serial.flush(); if (flash.initialize()) { Serial.println(F("ok!")); tests ++; } else { Serial.println(F("failed!")); } Serial.flush(); Serial.print(F("-> SHA204 : ")); ret_code = sha204.sha204c_wakeup(rx_buffer); Serial.flush(); if (ret_code != SHA204_SUCCESS) { Serial.print(F("Failed to wake device. Response: ")); Serial.println(ret_code, HEX); } Serial.flush(); if (ret_code == SHA204_SUCCESS) { ret_code = sha204.getSerialNumber(rx_buffer); if (ret_code != SHA204_SUCCESS) { Serial.print(F("Failed to obtain device serial number. Response: ")); Serial.println(ret_code, HEX); } else { Serial.print(F("Ok (serial : ")); for (int i=0; i<9; i++) { if (rx_buffer[i] < 0x10) { Serial.print('0'); // Because Serial.print does not 0-pad HEX } Serial.print(rx_buffer[i], HEX); } Serial.println(")"); tests ++; } } Serial.flush(); Serial.println(F("Test finished")); if (tests == 3) { Serial.println(F("Selftest ok!")); while (1) // Blink OK pattern! { digitalWrite(LED_PIN, HIGH); delay(200); digitalWrite(LED_PIN, LOW); delay(200); } } else { Serial.println(F("----> Selftest failed!")); while (1) // Blink FAILED pattern! Rappidly blinking.. { } } }
  • Dallas DS18B20 Parasite Mode

    19
    0 Votes
    19 Posts
    8k Views
    R
    I had to use a smaller pull up resistor (2.2k) to make my system work.
  • Arduino MKR1000

    2
    0 Votes
    2 Posts
    2k Views
    tbowmoT
    Interesting, it seems that it's the same MCU (SAM D21) that I'm working on in the GW.. Although, I don't have wifi on board..
  • NRF51822 as an "all-in-one"?

    13
    0 Votes
    13 Posts
    16k Views
    duncancraggD
    There's some Nordic example code that allows both Bluetooth LE and nRF24-ish protocols to run simultaneously on this chip. Well, baby steps: I've made a start at porting it to Arduino and to the Nano mentioned above. So you can exchange messages over nRF24-ish radio whilst also seeing those devices and messages on your phone using a BLE client. You can then send messages back. (And all that on USB serial, too.) Take a look and see where you think we could take it next - there's a list of things at the end: https://github.com/DuncanCragg/Onix Cheers! :-) Duncan
  • Power conservation with battery powered sensors

    battery
    17
    2 Votes
    17 Posts
    12k Views
    bjacobseB
    @sundberg84 I also on my last work removed the LG33, it's faster :-) Well this most likely have been provided as info, but else it's here: Remember to burn new OPTIBOOT 8MHz into the Arduino Pro Mini and then I also use avrdude with a usbtinyISP to set the fuse to not check battery voltage monitoring, this is done after I have flashed this with Arduino IDE avrdude -c usbtiny -p m328p -U efuse:w:0x07:m```
  • Hall effect sensor

    2
    0 Votes
    2 Posts
    2k Views
    H
    You need a linear hall efect sensor (output proportional to field strength). Search Ebay for A1301 Hall sensor. More information here: http://playground.arduino.cc/Code/HallEffect
  • port mysensors to nrf24le1?

    2
    0 Votes
    2 Posts
    1k Views
    tekkaT
    @jobarjo POC done. Please have a look here.
  • Cabling for new home

    2
    0 Votes
    2 Posts
    1k Views
    DidiD
    Take a look here, maybe it help you a little bit
  • Mega 2560 fails upload after first try.

    1
    0 Votes
    1 Posts
    769 Views
    No one has replied
  • ESP 8266 gateway instructions for ESP12

    2
    0 Votes
    2 Posts
    1k Views
    YveauxY
    I think the instructions in the gateway sketch are quite clear: CSN/CS GPIO15 ... and ... Connect GPIO15 via 10K pulldown resistor to GND This will pull the GPIO to GND during flashing and allows control of CSN when the gateway code is running.
  • Board for Arduino Nano + nRF24l01 + Sensors

    4
    0 Votes
    4 Posts
    2k Views
    DwaltD
    This shield has a socket for nano and nRf (wired the MyS way) and has pin headers for all the remaining pins. It also has a separate power jack (7-12V) to provide regulated power to the exposed pins. $5 is a good deal for those wary of soldering.
  • Compact and low cost MySensors + NRF24L01 Board Project

    35
    3 Votes
    35 Posts
    17k Views
    F
    Small update here. I've been working on the routing part. it's been years since i played with the nets, and wires on Eagles ... Oh boy, its a mess ! and while placing, moving components, i was thinking , wow, the Balun filter, the NRF24L01 are going to be impossible to hand solder correctly ! and I don't really want to buy a microscope, a $300 soldering station, ... So I looked around and found something interesting so I post it here, if some makers don't know about it, and are afraid of SMD soldering : OSH also make stencil for you, Kapton stencil for $5 ! https://www.oshstencils.com/index.php then it's a peace of cake :-) or is it ? https://www.youtube.com/watch?v=1RMtOAHbfvU Has anyone tried it before ? I'll definitely try it
  • Which ATmega do i go with?

    atmega microcontroller stand alone diy arduino
    24
    0 Votes
    24 Posts
    10k Views
    tbowmoT
    @samuel235 I'm using genuine atmel programmers (currently I'm on jtagice3) been serving me fine for the last couple of years (also have the added benefits of being able to work together with gdb, so I can debug arduino code on my atmel sam D21 mcu) Anyways, there are lot's of (cheaper) programmers out there, amongst others you could use another arduino as programmer..
  • adding libraries in proteus

    1
    0 Votes
    1 Posts
    5k Views
    No one has replied
  • Error flashing bootloader to atmega328p au board I design

    15
    0 Votes
    15 Posts
    15k Views
    M
    @AWI said: @Mickey Maybe you need to disconnect the radio. I am not able to use SPI programming with the radio connected... I also thought that but I made another board without the radio with the same error. I needed a fast way to figure it out so I desolder the atmega from an old arduino nano board but before I did it I read the fuses and got this: [image: 1449616155078-nanofuses.png] then I soldered the virgin series I have and read the fuses: [image: 1449616196773-virginfuses.png] so first of all It appears that I need the chips first hook up to an external clock just to be able to read the fuses and then change them.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    19 Views
    No one has replied

20

Online

11.7k

Users

11.2k

Topics

113.0k

Posts