Re: Remote pump control ideas.
I just thought of something I thought would be trivial but could end up being tougher than I thought: connecting multiple clients to a single server....not too sure yet what hardware I'll be using and how this affects the difficulty of this task.
For the pump project, this is easy: one client - one server, but here's there's several "ears" which have to report to the server which has to differentiate between them (separate warning light for each of them) and I don't think they can all hog the same port (23 in the case of the pump project)...I think I have to create multiple server objects on the server board and have each client connect to its own server. I think we're talking about multi-threading capabilities here which requires more advanced hardware...
Remote pump control ideas.
Collapse
X
-
Re: Remote pump control ideas.
That's a good point....guess they can spare an Ethernet jack in each room thenNow to settle on an appropriate board. The STM one is.....kinda oversized for this application I think
Still, Ethernet-capable boards tend to be overspec'd like this. Cost is another aspect, since I imagine there's like 5-10 rooms and I can't blow my budget on a single room...
Leave a comment:
-
Re: Remote pump control ideas.
i personally wouldnt use any type of radio for safety critical alarms/monitors.
the liability if they get jammed at the wrong moment is huge.Leave a comment:
-
Re: Remote pump control ideas.
I/O count is not a problem, since for this next project I was talking about, the end goal is to essentially create some "ears" which light up the corresponding room number on a panel located in the night watch office to alert the staff if any of the newborns start crying - yes, that's right: I'm talking about a newborn ward at a private clinic hereThey also want this to double as a listener for any alarms given off by the incubators or whatever monitoring devices they have in these newborn wards........which I right away suggested is a VERY poor way of implementing this sort of monitoring when dealing with something this important. I insisted that we instead have a look at said devices to see if they don't already feature some sort of communication interface and use THAT instead (seems logical), but the management or whoever's in charge said I just go ahead and go down this other route, so I jut took off my hat and delivered (pun intended
)...sort-of. I'm just messing with some mic modules I picked up off Ali for cents....not the most high-tech solution when considering we ARE talking about newborns and what could be time-sensitive situations
Not sure how I feel about this...
Last edited by Dannyx; 10-14-2020, 11:40 AM.Leave a comment:
-
Re: Remote pump control ideas.
if you mess with ESP chips then make sure you know what your buying, some have an antenna socket, some dont - and the ones that do, you often have to enable it by moving an inductor or cap on the board.
problem with ESP's is a lack of i/o pins.
great for serial protocols to wifi or bluetooth(ESP32) but crap for loads of switches/transistors!Leave a comment:
-
Re: Remote pump control ideas.
go look at https://os.mbed.com/
There's also RaspberryPi which I've been wanting to get into...in fact, there's so many solutions it makes your head spinI imagine the proper approach for choosing one is based on the project: you don't send an Arduino up in space, nor do you use a supercomputer to turn on some lights, so I think knowing a bit of everything is good. They all seem to share the same language, so moving between them should be feasible enough, even for yours truly who is clearly NOT the sharpest pencil in the box
I have another project underway which could benefit from some small Wi-Fi-capable MCUs. ESP8266 might be a candidate. The idea is similar to the pump-tank one (client reports stuff to server which does stuff), except here there's multiple clients - one in each room - which should hook up via Wi-fi and sit in a corner somewhere to avoid wires and junk as much as possible....what "rooms" we're talking about and what the system is supposed to do is beyond the scope of this discussion and should be its own threadLast edited by Dannyx; 10-14-2020, 09:54 AM.Leave a comment:
-
Re: Remote pump control ideas.
go look at https://os.mbed.com/
about boards,
you choose the best, not the one in stock.
if your employer is playing the stupid "prefered supplier" game that i'v seen too often then they obviously arent too serious about doing things properly for clients.Leave a comment:
-
Re: Remote pump control ideas.
I had this worry even WITH the Nucleo, though I did find a library for the Arduino IDE which put my mind at ease a bit...I wonder if the code can be easily adapted for boards other than Arduino, so instead of trying to use the IDE, I use whatever the particular board works with natively...Leave a comment:
-
Re: Remote pump control ideas.
but if the configuration is different then it may not work with your arduino ide
just use a different supplier.Leave a comment:
-
Re: Remote pump control ideas.
My project hit a snag right off the bat: the F767 board I initially chose for the build is not in stock, so I'm trying to find a replacement
I found this Olimex thing which is more expensive, but looking past that, seem to be roughly the same thing - still STM32...Leave a comment:
-
Re: Remote pump control ideas.
the schematics are in the pdf's,
you can see the regulator and caps used and work out the max input from thatLeave a comment:
-
Re: Remote pump control ideas.
I know that, but the absolute maximum rating is nowhere to be found. The datasheet simply says it can accept up to 12v on its 12v input (which is naturally then stepped-down by that regulator tot 3.3v), but there's no mention of how hard you can overvolt that 12v input before something pops (the regulator probably)....wonder if it can take up to like 35v like most regulators can, at the expense of maximum current you can then draw from it. I imagine it's pretty resilient...Leave a comment:
-
Re: Remote pump control ideas.
the nucleo is actually 3.3v - it has an onboard regulator.Leave a comment:
-
Re: Remote pump control ideas.
Another thing came to my mind about the hardware: would it be wise to drop some sort of zener protection on the input of the MCU ? The Meanwell PSU I proposed outputs 12v AND 5v, so I have the option of powering the Nucleo with either....not sure which would be better. Regardless, would a resistor+ a 13v zener be a waste of time or mandatory ?
The "sump" end is powered only by 12v for now, since it's solar powered and I'm not sure how much that controller overshoots, so it's the same thing there: I should probably design some sort of basic protection...maybe even better: with a PTC fuse so it resets by itself after a spike.....didn't think it through yet. The datasheet doesn't quite make it clear how much these nucleos consume - I think it's 300mA....either that, or I'm plain stupid and don't see it, which is the more plausible explanation, as alwaysLast edited by Dannyx; 10-12-2020, 05:04 AM.Leave a comment:
-
Re: Remote pump control ideas.
This is the issue I was facing, as described.
I don't know squat about advanced programming stuff (like threads), hence why I'm using layman terms most of the time. The Arduino IDE uses C++ and from what I understand it's fairly potent, by my standards at least, if you know how to do it. I did it by ear, so stuff is not up to snuff...
Here's a "program" (thread/task) to control an LED. It allows "something" to indicate whether the LED should be OFF, ON or BLINKING (at some predetermined rate).
Code:extern state; Drive_LED() { state = OFF; while (FOREVER) { switch (state) { case OFF: LED = OFF; break; case ON: LED = ON; break; case BLINK: LED = ON; sleep(1000); // ON time, in milliseconds LED = OFF; sleep(500); // OFF time, in miliseconds break; default: break; } } }
You can embellish this to handle any number of LEDs and ensure that they blink in "unison" (instead of each coming on "whenever" and winking off some time after that).
The above code snippet can be bound to C, C++, ASM and be equally obvious. I.e., the language doesn't buy you squat!
OTOH, try doing this in a single-threaded environment regardless of language AND making sure those times (1000, 500) are guaranteed.Leave a comment:
-
Re: Remote pump control ideas.
if you do that, you need to zip them to get round the attachement filter.
then people have to download them to view!
copy/paste is betterLeave a comment:
-
Re: Remote pump control ideas.
True, but I was planning on uploading the INO files anyway, not the code as text....not sure if that's the way to go around here.Leave a comment:
-
Re: Remote pump control ideas.
^^Well if you do please use CODE tags in your post, so the formatting is not lost.
I added them to your post #48, looks much prettier at leastLeave a comment:
-
Re: Remote pump control ideas.
Not sure whether I should post my code here for others to see or notIt's a mess and I'll probably get roasted good
but it's the only way one learns and gets better at something I guess....
Leave a comment:
Related Topics
Collapse
-
by tmhobadcapI have this receiver for at least 10 years. Usually, we just use the remote for turning on/off and adjusting the volume. Recently, the remote control started not able to turn the receiver on. Later, the volume also could not be adjusted by the remote control.
At first, I thought that it was the usual problem which can be fixed by cleaning the contacts on the switches and the pcb. I opened the remote and clean it with alcohol. The remote did work again after that. But after one day, it did not work again. I opened it again and clean with alcohol and contact cleaner. Again it worked... -
This specification for the HP Mobile Thin Client mt44 Mobile Thin Client 3JG86EA Mobile thin client can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the mt44 Mobile Thin Client 3JG86EA boardview and mt44 Mobile Thin Client 3JG86EA schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please note...09-06-2024, 06:50 AM
-
by piipoHi, I have an old Privileg brand 5.1 speakers. I have lost the remote control. I have an universal Harmony remote but there is no Privileg brand in it's software to add. Does anybody have an idea what alternative brand for a remote can I try instead? I'm attaching an image of what the speakers looks like. The image shows 2 main speakers, they are 5 + 1 in total. Thank you very much1 Photo
-
Channel: Troubleshooting Audio Equipment
09-18-2024, 01:55 AM -
-
This specification for the HP mt44 Mobile Thin Client Mobile thin client can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the mt44 Mobile Thin Client boardview and mt44 Mobile Thin Client schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please note that we offer no warranties that any specification,...09-06-2024, 06:50 AM
-
This specification for the HP mt44 Mobile Thin Client Mobile thin client can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the mt44 Mobile Thin Client boardview and mt44 Mobile Thin Client schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please note that we offer no warranties that any specification,...09-06-2024, 06:50 AM
- Loading...
- No more items.
Leave a comment: