It might be possible to power the Arduino off the output pin. Since they are dirt cheap I would just test it.
But like the others I would suggest to use the interrupts of pin 2 and 3.
For my battery powered 3.3v pro mini I use 3.3v pir sensors without the voltage regulator. The standard 5v pir needs at least 4.5v just to step it down internally to 3.3V. On these I had problems with voltage stability because I stepped it up to 5V. Also the battery lifetime was poor.
With the 3.3v pir version this thing runs for months. With the solar panel on top maybe forever.
Posts made by Honk
-
RE: Can I power arduino (or other mcu) from PIR output?
-
RE: What multimeter should i wish for?
I bought this one:
US $24 47%OFF | RM109 Palm-size True-RMS Digital Multimeter 9999 counts Square Wave Backlight AC DC Voltage Ammeter Current Ohm Auto/Manual
AliExpressIt is Dave Jones approved and served me very well.
Here is his review:
Youtube, Dave jones, review -
RE: Best 3d printers
I bought the ender 3 (non pro) from gearbest. So far I'm very satisfied with it. For 180$ it is a very good printer.
The bed surface I upgraded for a PEI one. This thing is awesome. Very clean bottom surface and the prints are easy to remove.
Later I will add a bltouch for automatic bed leveling. Then I want to replace the board. In embedded stepper motor drivers are a bit to noisy. No need for in terms of quality. Mostly for silence reasons. Another great addition is a raspberry pi with octoprint. With this you can run your printer wirelessly over WiFi.
200$ is already very cheap. I wouldn't by a cheaper one than the ender 3.
If you need more build volume you might better go with the 10s from creality. -
RE: Assign sensor ID so it never changes
If you want to force the ID for the Sensor node you can add
#define MY_NODE_ID 200
before
#include <MySensors.h>
This will overwrite the Node ID in the Arduino EEPROM. If the Unit is powered up and connected to the Gateway you can remove the define. The ID should now be stored in the EEPROM.
-
RE: What did you build today (Pictures) ?
Nothing fancy. Got my new ts100 today and I pre-soldered some V10 easyPCBs with 3.3v Arduino pro minis.
The iron is pretty good. It is Louis Rossmann approved. Now I need a good 24V power source to drive this thing. -
RE: Landis & gyr infrared energy meter reader
@sullivan-buchs how did you get 7e1 mode on an uno working?
I have some Energy Meters working with Meter-Bus and the IEC1107 protocol. Couldn't find a proper working software lib for serial communication. I solved the problem using the hardware Serial ports on my Mega. -
RE: SmartSleep and FHEM - does it work?
There is a new maintainer for the module in fhem. He implemented a lot of new stuff and also the smartsleep feature. For example nodes are now showing if they are sleeping.
Also messages to the node are delayed till it wakes up the next time. -
RE: [Solved] Nodes having trouble reconnecting to gateway
@flyingdomotic thank you. I also had some problems with some nodes which worked very nice on 2.1.1. When I worked on some of the nodes and updated to 2.3.1 I noticed, that communication wasn't so great anymore.
On first glance this fix works on my plant sensor node. Hope it stays that way now.Some people are saying with debug on it works and without it, it doesn't maybe the Debug line before the ce(low) does the same thing as your delay.
-
RE: Powering the nano with a battery
I wouldn't power it from battery. To consuming.
Had one powered with two AA batteries. It lasted for one week.
Changed the nano with a pro mini 3.3v and now it runs forever. -
RE: how add watchdog to my sensors?
@Reza this is a #define MY_RECONNECT 5000
just put a time in ms into the wait function. -
RE: how add watchdog to my sensors?
if (!isTransportReady()) wait(MY_RECONNECT);
your node just needs to be awake to reconnect to the gateway.
I've set MY_RECONNECT to 5000 (5sec).
So far this works for my sleeping battery node.isTransportReady could also be isTransportOK. depends on the version you are using.
-
RE: Arduino Not Responding -- NEWBIE Help
make really sure that the pins are connected right
yours seems to be mixed around. turn it around
-
RE: Controller developers news for 2.0.x
I've found some typos on the serial api page.
S_DIMMER 4 Dimmable device of some kind V_STATUS (on/off), V_DIMMER (dimmer level 0-100), V_WATT
V_DIMMER needs to be V_PERCENTAGE
S_HVAC 29 Thermostat/HVAC device V_HVAC_SETPOINT_HEAT, V_HVAC_SETPOINT_COLD, V_HVAC_FLOW_STATE, V_HVAC_FLOW_MODE, V_HVAC_SPEED
V_HVAC_SETPOINT_COLD needs to be V_HVAC_SETPOINT_COOL
-
RE: FHEM
@Daniel-Lienhard @ntruchsess
i have updated MY_SENSOR_DEVICE.pm and Constants.pmwould be nice if these files can be cheked and then submitted to the FHEM SVN.
I've only added constants.1_1471334476177_Constants.pm 0_1471334476176_10_MYSENSORS_DEVICE.pm
-
RE: Dallas Temp failure to compile
why not put the function millisToWaitForConversion into the example.
I like to have the latest libary available for sensors. It can be loaded with the arduino studio.
Read the min wait time is pretty easy. it is just a switch case based on the datasheet.// returns number of milliseconds to wait till conversion is complete (based on IC datasheet) int16_t DallasTemperature::millisToWaitForConversion(uint8_t bitResolution) { switch (bitResolution) { case 9: return 94; case 10: return 188; case 11: return 375; default: return 750; } }
-
RE: Dallas Temp failure to compile
@tlpeter
This is my function to read all Sensors. You have to give the Sensor time to do the measuring and make the result available.
I've commented everything out to get the min wait time. It is defined in the Datasheet of the Sensor
If you wait or sleep for 750ms you are save. Depending on the resultion of the sensor you can wait a bit less.void readDallasSensors() { // Fetch temperatures from Dallas sensors TempSensors.requestTemperatures(); // query conversion time and sleep until conversion completed //int16_t conversionTime = TempSensors.millisToWaitForConversion(TempSensors.getResolution()); // sleep() call can be replaced by wait() call if node need to process incoming messages (or if node is repeater) sleep(750); // Read temperatures and send them to controller for (int i = 0; i < numTempSensors && i < MAX_ATTACHED_DS18B20; i++) { // Fetch and round temperature to one decimal float temperature = TempSensors.getTempCByIndex(i); #ifdef DEBUG SPrint(Temperature: ); Serial.println(temperature, 1); #endif // Only send data if temperature has changed and no error if (abs(lastTemperature[i] - temperature) >= 0.1 && temperature != -127.00 && temperature != 85.00) { // Send in the new temperature send(msg.setSensor(i).set(temperature, 1)); // Save new temperatures for next compare lastTemperature[i] = temperature; } }
-
RE: FHEM
@ntruchsess Will the Module in FHEM be updated for Version 2.0.0?
If there are only new Constants I could try to do it and make it available to be published in the FHEM SVN.