Skip to content

Hardware

Talk about fun sensor hardware, MCUs, PCBs and how to power your sensors here.
1.8k Topics 18.3k Posts
  • Battery life of sensors.

    11
    0 Votes
    11 Posts
    4k Views
    hekH
    @5546dug Brown out detection http://www.scienceprog.com/microcontroller-brown-out-detection/
  • Is the Nano a good PS for nRF24L01+?

    2
    0 Votes
    2 Posts
    2k Views
    Z
    Hm, I just found a reference regarding the CH340 and 3.3v. From http://www.minikits.com.au/nano-v3.0b The Arduino Nano can be powered via the Mini-B USB connection, 6-20V unregulated external power supply (pin 30), or 5V regulated external power supply (pin 27). The power source is automatically selected to the highest voltage source. The CH340G chip on the Nano is only powered if the board is being powered over USB. As a result, when running on external (non-USB) power, the 3.3V output (which is supplied by the CH340 chip) is not available and the RX and TX LEDs will flicker if digital pins 0 or 1 are high. My question about using the 3.3v supply from the Nano for the nRF came from two use cases: Running with a 5v USB power supply sounds OK. But I was also thinking of running from a 12V supply in a case where 12V is used for relays and lights anyway. I was thinking to use the onboard 5V regulator for the Nano's uC, and the 3.3v supply for the radio. The quote sounds like the latter would not work - unless perhaps I bridged the 5V from the uC regulator to the USB 5v pin to activate the CH340 ? (Some more power, perhaps interference if I wanted to use the uC RX pin). Any knowledge or experience to share? One aside: Sometimes a regulator is spec'd up to 12v and sometimes a 12v supply is a little high. My thought was to insert a diode in line to drop a volt or so; this should give more margin, and also at least slightly reduce how much of the voltage/power has to be dropped & dissipated inside the linear regulator. As a side effect, it might help with accidental reversal of voltage. This is also my answer to someone who wanted to run an unregulated ardu pro mini off 4xAA alkaline.
  • Searching for N-Channel MOSFET

    5
    0 Votes
    5 Posts
    2k Views
    OitzuO
    @epierre yeah the FQP30N06L would do the job, too. There's not much options in this sector, the irlz44n is overpowered for the application, too. But will do it. For very small applications i ordered a bunch of 2N7000. They do 60V 0,2A.
  • Help needed

    9
    0 Votes
    9 Posts
    6k Views
    M
    SUPER!!!!!!!! It works :-D Thats for my first Serial gateway, now i'm going to have a look if i can convert it to the ethernet version. An other question: Is it also possible to make a gateway wich can controle multiple receivers?? For example, the RF24L01 with a 434Mhz receiver etc??
  • Long range radios not compatible?

    radio pinout nrf24l01+
    3
    0 Votes
    3 Posts
    4k Views
    I
    Thanks for the tip!. It looks like a USB powered Arduino Nano cannot handle the long range radios power requirements. I powered the radio module independently and I can send commands succesfully again! The range has not improved, though, but that's another matter... Thanks !
  • Wind sensors

    8
    0 Votes
    8 Posts
    5k Views
    T
    @NeverDie said: That seems like a great prices on the wind sensor. Unfortunately, it looks as though Malin won't ship to the USA. :anguished: You can always find somebody who can buy and send it for you ;) I have this privilege that my friend goes to UK very often so he brought me some pcs from Maplin ;) treb0r
  • Sensor Board, water meter, pressure, relay and analog in

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Combo entry scene trigger?

    6
    0 Votes
    6 Posts
    3k Views
    J
    Here is a basic untested code that might do what you're wanting. I combined a my sensors button sketch with the following. http://www.instructables.com/id/Arduino-door-lock-with-password/ I might build one up at some point, but currently I haven't tested it. #include <MySensor.h> #include <SPI.h> #include <Password.h> //http://playground.arduino.cc/uploads/Code/Password.zip //tells to use password library #include <Keypad.h> //http://www.arduino.cc/playground/uploads/Code/Keypad.zip //tells to use keypad library #define CHILD_ID 3 Password password = Password( "0000" ); //password to unlock, can be changed const byte ROWS = 4; // Four rows const byte COLS = 4; // columns // Define the Keymap char keys[ROWS][COLS] = { {'1','2','3'}, {'4','5','6'}, {'7','8','9'}, {'*','0','#'} }; // Connect keypad ROW0, ROW1, ROW2 and ROW3 to these Arduino pins. byte rowPins[ROWS] = { 9, 8, 7, 6 };// Connect keypad COL0, COL1 and COL2 to these Arduino pins. byte colPins[COLS] = { 5, 4, 3 }; MySensor gw; int oldValue=-1; // Change to V_LIGHT if you use S_LIGHT in presentation below MyMessage msg(CHILD_ID,V_TRIPPED); // Create the Keypad Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); void setup() { gw.begin(); delay(200); pinMode(11, OUTPUT); //green light pinMode(12, OUTPUT); //red light keypad.addEventListener(keypadEvent); //add an event listener for this keypad // Register binary input sensor to gw (they will be created as child devices) // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. // If S_LIGHT is used, remember to update variable type you send in. See "msg" above. gw.present(CHILD_ID, S_DOOR); } void loop(){ keypad.getKey(); } //take care of some special events void keypadEvent(KeypadEvent eKey){ switch (keypad.getState()){ case PRESSED: Serial.print("Enter:"); Serial.println(eKey); delay(10); Serial.write(254); switch (eKey){ case '*': checkPassword(); delay(1); break; case '#': password.reset(); delay(1); break; default: password.append(eKey); delay(1); } } } void checkPassword(){ if (password.evaluate()){ //if password is right open Serial.println("Accepted"); Serial.write(254);delay(10); //Add code to run if it works gw.send(msg.set(1)); digitalWrite(11, HIGH);//turn on delay(5000); //wait 5 seconds digitalWrite(11, LOW);// turn off delay(5000); gw.send(msg.set(0)); }else{ Serial.println("Denied"); //if passwords wrong keep locked Serial.write(254);delay(10); //add code to run if it did not work gw.send(msg.set(0)); digitalWrite(12, HIGH); //turn on delay(5000); //wait 5 seconds digitalWrite(12, LOW);//turn off } }```
  • SAM architecture (DUE, Teensy 3)

    arm sam due tee
    4
    0 Votes
    4 Posts
    3k Views
    tbowmoT
    @Frank-Herrmann I'm working on a GW device using atsam D2, which is the same they use in arduino zero. Still in the design phase, but think we are getting close to ordering the first prototype pcb's Design thread is here http://forum.mysensors.org/topic/1137/gateway-device
  • Bought nRF24L01+ and nRF905 IC's instead of modules on accident

    5
    0 Votes
    5 Posts
    2k Views
    W
    Honestly, on closer inspection, there is no way I will be able to solder it to a board. I'm just gonna buy the modules.
  • Anyone powering a mysensor with solar plus supercapacitor?

    2
    0 Votes
    2 Posts
    1k Views
    hekH
    A good article regarding self discharge: http://www.robotroom.com/Capacitor-Self-Discharge-4.html
  • nRF24L01 + ESP8266 Shield for Arduino Uno & Mega 2560

    4
    0 Votes
    4 Posts
    3k Views
    NeverDieN
    @hitosnap said: I believe it is Arduino compatible so it should works with custom coding. I also don't have idea about it. I just share with aim that any member can try this module without much soldering & their review can help other member. Source Code Schematic IoT Shield User Manual Documents link Fair enough. Thanks. Drilling down into the link you provided, it looks as though they are using a website called devicebit to graph the sensor data. It's nominally similar to xively. For the NRF24L01, it's using a library I haven't heard of before. Beyond the NRF24L01.h file, and the example code, I couldn't find any additional information giving details on how to use it. It does at least the minimum for the example code to work, so it's better than nothing. However, beyond that, it appears to be nearly a bare metal interface: i.e. be prepared to directly manipulate chip registers if you want to access greater functionality. Nothing wrong with that, if that's the level you prefer to work at.
  • Alternative to RFXcom (433 MHz) ?

    5
    0 Votes
    5 Posts
    8k Views
    S
    For the 2.4 GHz part, the nRF is a transceiver meaning it does both TX and RX. For the 433 mhz part, the PCB referenced in the first post has an "Aurel RTX-MID" which is a transceiver and thus both TX and RX so you can receive RF signals from 433mhz devices and also send commands via RF to 433mhz switches, doorbells etc. The software provides state switching signals to control the transceiver mode if one is used. Of course you do not need to use a transceiver, seperate TX and RX modules works just as well. You can use almost any a separate receiver and transmitter module like mentioned before.. For sending you can use a cheap Chinese transmitter (like the FS1000A XY-FST from the XY-M5-5V set) which can be nice as many people have these lying around.. The receiver from such a set is in most cases pretty poor because it receives a lot of noise. (Btw, these Chinese sets seem to perform a little bit better at higher voltages.)
  • XAmbi Kid mini Pro - Prototype

    6
    3 Votes
    6 Posts
    4k Views
    Frank HerrmannF
    [image: 1437383494920-img_3349.jpg] Here with installed HML5883 Magnetometer, but sadly doesn't work. Don't know why, but i decided to rework the design and replace all I2C sensors with a Solarcharger/Supercap-PowerSupply and add a voltage booster for 5V.
  • Battery backup?

    3
    0 Votes
    3 Posts
    1k Views
    Moshe LivneM
    @Yveaux no no no.... I didn't explain myself well I guess. The mysensors node "press" buttons on a universal remote control, see http://forum.mysensors.org/topic/1662/air-conditioning-hvac-control-work-in-progress The universal remote is powered from the arduino as well. As long as it is powered it remembers the settings for the aircon. once I power down the node the remote powers down as well and has to scan to find the right settings.
  • Pool water temp measuring hose adapter

    3
    0 Votes
    3 Posts
    3k Views
    H
    @gregl , why didn't I think about that! Great tip! I might buy the joint I linked to in my first post but then use a standard bolt and drill it open for a standard DS18B20 water proof temp sensor which I allready have laying around is really simple solution. Thanks! Will try to get back with pictures when this is done... ☺ Henrik
  • Anyone has ideas how to implement a boxing bag?

    6
    0 Votes
    6 Posts
    2k Views
    hekH
    :thumbsup:
  • MQ2 Sensor w/AirQuality Sketch

    15
    0 Votes
    15 Posts
    11k Views
    Moshe LivneM
    @Viper_Scull Domoticz supports V_VARs, just not as a viewable or modifiable value on the controller. It will store and return the V_VARs values for the sketch, nothing more.
  • Mysensors and 433 mhz

    6
    0 Votes
    6 Posts
    5k Views
    E
    @Sparkman thanks man, i finally got 2 nrf24l01 just for testing and now i would like to test an example for a dht11 and 2 relay, can you help me? do i still need something else? i'm trying to follow TimO example but without luck. I have an arduino mega and uno too, an ethernet shield and 2 nrf, a few sensors. I would like to make a serial gateway or a ethernetgateway and to connect dht11, 2 relays and a sct-013-00. can anyone help me? any help would be kindly appreciated. thanks all.
  • Miniature stepup - will it work with a nano?

    12
    0 Votes
    12 Posts
    4k Views
    Moshe LivneM
    @blacey oh i see. My pro mini has vin written on the raw pin so i mixed it up. Thanks!

9

Online

11.7k

Users

11.2k

Topics

113.0k

Posts