Go to advanced search

by mesand
Sat Sep 12, 2020 11:54 pm
Forum: General discussion
Topic: 2 devices of different voltage from one source
Replies: 19
Views: 518

Re: 2 devices of different voltage from one source

hi dickon, what is the best way for the esp32 to read the battery voltage of the 12v battery to turn itself off or go into deep sleep if the battery is too low. is this what a charge controller with "over-discharge" protection is doing? or is it protecting the battery from over discharge from the pa...
by mesand
Mon Aug 24, 2020 10:17 pm
Forum: General discussion
Topic: 2 devices of different voltage from one source
Replies: 19
Views: 518

Re: 2 devices of different voltage from one source

Ok, I will get these numbers. This is my first time calculating these types of things. I'm excited. thanks for pointing me in the right direction. I will keep you updated
by mesand
Mon Aug 24, 2020 9:31 pm
Forum: General discussion
Topic: 2 devices of different voltage from one source
Replies: 19
Views: 518

Re: 2 devices of different voltage from one source

the solenoid will probably be on for 15 minutes max once every day or so.

I may also add in some sensors that will read twice or so a day.
by mesand
Mon Aug 24, 2020 9:29 pm
Forum: General discussion
Topic: 2 devices of different voltage from one source
Replies: 19
Views: 518

Re: 2 devices of different voltage from one source

ahhh, very good point on having a system in place to switch off the necessary devices in the even power is too low. I think the way I will design this is to find a way to monitor the battery level of the 12v battery using the esp32 ( i dont know how to do this yet) and I will then send a LoRa messag...
by mesand
Mon Aug 24, 2020 8:45 pm
Forum: General discussion
Topic: 2 devices of different voltage from one source
Replies: 19
Views: 518

Re: 2 devices of different voltage from one source

perfect thanks for your advice/wisdom haha. the project is one esp32 or raspberry pi on wifi(not controlled by solar) using lora to communicate with an esp32 in a field(controlled by solar). the field esp32 will have a solenoid connected to either a relay or mosfet switch. I definitely need it to be...
by mesand
Mon Aug 24, 2020 8:20 pm
Forum: General discussion
Topic: 2 devices of different voltage from one source
Replies: 19
Views: 518

Re: 2 devices of different voltage from one source

ok thank you so much sounds good... I am just getting into remote solar power so I am going to look into this more. This so far sounds like a good plan. I would ideally like to use cheaper/less powerful batteries and solar panels. ideally id like to use around a 5v battery/panel for the two devices ...
by mesand
Mon Aug 24, 2020 7:37 pm
Forum: General discussion
Topic: 2 devices of different voltage from one source
Replies: 19
Views: 518

Re: 2 devices of different voltage from one source

Ok, thank you. So essentially the 12v panel will be constantly charging a 12v battery through a charge controller. with a buck converter to 5v for the pi and nothing for the solenoid? Then I would have some sort of protection circuit in case the battery goes below lets say 10 volts? Do you know what...
by mesand
Mon Aug 24, 2020 7:25 pm
Forum: General discussion
Topic: 2 devices of different voltage from one source
Replies: 19
Views: 518

Re: 2 devices of different voltage from one source

https://www.amazon.com/Adjustable-Converter-Automatic-Voltage-Regulator/dp/B07NTXSJHB/ref=sr_1_1_sspa?crid=3RHHHUHNOOHC3&dchild=1&keywords=buck%2Fboost+converter&qid=1598296976&sprefix=buck%2Fboost+%2Caps%2C392&sr=8-1-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEzVVpYR1kwQldBTDNSJmVuY3J5cHRlZElkPUEwO...
by mesand
Mon Aug 24, 2020 7:19 pm
Forum: General discussion
Topic: 2 devices of different voltage from one source
Replies: 19
Views: 518

Re: 2 devices of different voltage from one source

thank you.

my main concern is that a 24 volt battery sounds expensive and heavy duty for my purpose, but I dont know since I am a newbie.

Is my idea of using a solar panel >> charge controller >> lipo battery (maybe 3-7volts) >> 2 buck/boost module set to 5v and 12v output a reasonable setup?
by mesand
Mon Aug 24, 2020 6:13 pm
Forum: General discussion
Topic: 2 devices of different voltage from one source
Replies: 19
Views: 518

Re: 2 devices of different voltage from one source

Great, I am located in Southern California so sunny days and snow are no issue.

My main concern is that if the battery is running out of power for whatever reason... and is slipping below 12 volts I would also need a boost converter module to maintain a stable 12 volts to the solenoid...correct?
by mesand
Mon Aug 24, 2020 5:28 pm
Forum: General discussion
Topic: 2 devices of different voltage from one source
Replies: 19
Views: 518

2 devices of different voltage from one source

Hello, The scenario: I havent come up with a set plan nor have I purchased anything yet. I am planning on purchasing a ~5v solar panel that charges a ~5v battery via a charge controller which feeds a battery a stable voltage. From the battery I need to power a raspberry pi AND a 12v .5 amp solenoid ...
by mesand
Tue May 05, 2020 7:56 pm
Forum: General discussion
Topic: Time lapse/live stream with remote webserver
Replies: 0
Views: 54

Time lapse/live stream with remote webserver

Hi all, I am new to this topic. I have a remote flask webserver connected to a raspberry pi that communicates via mqtt. I would like to incorporate sending time lapse (every day or week) to the app to be seen by me the user. I am wondering how I would go about doing this. So far I am thinking of sen...
by mesand
Mon May 04, 2020 5:54 pm
Forum: General discussion
Topic: Tips on Soldering Pi Breakout Board/nano to Perfboard
Replies: 0
Views: 70

Tips on Soldering Pi Breakout Board/nano to Perfboard

Hi all, I am relatively new to working with electronics. I have a breadboarded circuit. The circuit is very basic. It has a breakout board for a Raspberry Pi 3b+ attached to a breadboard and an arduino nano. The Nano reads data from some sensors and has a couple resistors. The Pi breakout board cont...
by mesand
Tue Apr 21, 2020 3:08 pm
Forum: General discussion
Topic: How to run concurrent long(not longer than a couple minutes) running tasks flask/raspberry pi/mqtt
Replies: 5
Views: 245

Re: How to run concurrent long(not longer than a couple minutes) running tasks flask/raspberry pi/mqtt

Ok perfect. Yes. I have cookies and a login authentication system in place. Where only logged in users (Just me for now) can visit the site to turn on the hardware

Thank you for the advice
by mesand
Tue Apr 21, 2020 8:39 am
Forum: General discussion
Topic: How to run concurrent long(not longer than a couple minutes) running tasks flask/raspberry pi/mqtt
Replies: 5
Views: 245

Re: How to run concurrent long(not longer than a couple minutes) running tasks flask/raspberry pi/mqtt

Very good, thanks for the input. https://www.youtube.com/watch?v=6ApFx-0Fmvk&t=76s This is APscheduler and it has a flask extension. It has the ability to pool in the background of the flask application to check some internal state or something. I may utilize your suggestions and use this as the sol...
by mesand
Tue Apr 21, 2020 7:46 am
Forum: General discussion
Topic: How to run concurrent long(not longer than a couple minutes) running tasks flask/raspberry pi/mqtt
Replies: 5
Views: 245

How to run concurrent long(not longer than a couple minutes) running tasks flask/raspberry pi/mqtt

Hi all, Here is my dilemma. I have a flask webserver and I have a user input where they enter the number of seconds to turn a piece of hardware on for. Currently, I send an ajax request to a route in flask where i send a message to turn on the hardware via mqtt... then in flask I time.sleep(user inp...
by mesand
Mon Apr 13, 2020 2:52 am
Forum: General discussion
Topic: Best way to get sqlite data from Raspberry pi to a remote server
Replies: 3
Views: 197

Re: Best way to get sqlite data from Raspberry pi to a remote server

Thank you. Currently I am on port 1883 and not using any ssl. I havent found much information on mqtt security. I'm using the paho library to send and receive data. I didnt think using ssl or tcp was too necessary since I am just sending testing phase sensor data, but I will harden it. Is it possibl...
by mesand
Mon Apr 13, 2020 1:19 am
Forum: General discussion
Topic: Best way to get sqlite data from Raspberry pi to a remote server
Replies: 3
Views: 197

Best way to get sqlite data from Raspberry pi to a remote server

Hi all, I am writing data from an arduino nano to my raspberry pi. I have a remote server on linode and I typically communicate with the pi using mqtt. This communication usually consists of turning pumps on and getting sensor data. Now I am wondering how I can get more data from the pi. I want to b...
by mesand
Thu Apr 09, 2020 4:01 am
Forum: General discussion
Topic: Poor practice to read from .txt file multiple times a minute?
Replies: 25
Views: 1225

Re: Poor practice to read from .txt file multiple times a minute?

so do you know what I would do to remedy this problem
by mesand
Thu Apr 09, 2020 3:19 am
Forum: General discussion
Topic: Poor practice to read from .txt file multiple times a minute?
Replies: 25
Views: 1225

Re: Poor practice to read from .txt file multiple times a minute?

hmmm no I didnt do that. But i havent experienced a problem when changing the text file with different values...the code still updates accordingly
by mesand
Wed Apr 08, 2020 9:28 pm
Forum: General discussion
Topic: Poor practice to read from .txt file multiple times a minute?
Replies: 25
Views: 1225

Re: Poor practice to read from .txt file multiple times a minute?

Hi all. Thanks for all your input. I solved this problem and put my solution with code and thorough explanation in another thread. Here is the link This code uses a loop that implements a lighting cycle and checks for updates the cycle if values in a text file change at any point... it should work w...
by mesand
Wed Apr 08, 2020 9:26 pm
Forum: General discussion
Topic: On/Off Timer With Cron
Replies: 5
Views: 354

Re: On/Off Timer With Cron

Hi all. I solved this problem and put my solution with code and thorough explanation in another thread. Here is the link

viewtopic.php?f=63&t=269246&p=1639963#p1639963
by mesand
Wed Apr 08, 2020 9:22 pm
Forum: General discussion
Topic: Turn Lights on and off based off schedule
Replies: 11
Views: 589

Re: Turn Lights on and off based off schedule

Hi all, Here is the code I used to solve this problem. This code works for me and it should work for you as well given proper adjustment of the text file you are using. Scenario : I have a flask app on a remote server communicating with a raspberry pi (via mqtt communication) that controls a light (...
by mesand
Wed Apr 08, 2020 8:50 pm
Forum: General discussion
Topic: Poor practice to read from .txt file multiple times a minute?
Replies: 25
Views: 1225

Re: Poor practice to read from .txt file multiple times a minute?

ok cool, yea I am new to the pi and computing so I didnt know.. but it seems having something like this running constantly in the background is common
by mesand
Wed Apr 08, 2020 3:09 pm
Forum: General discussion
Topic: Poor practice to read from .txt file multiple times a minute?
Replies: 25
Views: 1225

Re: Poor practice to read from .txt file multiple times a minute?

Lots of good info ha come about from this thread. Thanks because I’m a newbie. I’ll post code here once it’s completely working What I am doing is running the script forever in the background. It’s simply checking if the file has been changed and if it has...then I grab the new values if not I conti...

Go to advanced search