Advise on a sensor ...
 
Notifications
Clear all

Advise on a sensor choce

16 Posts
3 Users
6 Reactions
661 Views
(@embsysdev)
Member
Joined: 10 months ago
Posts: 12
Topic starter  

Hello comrades ,

I need 2 suggestions for the preliminary ideas on a project. I hope it is ok to bounce general ideas here ?

A) An appropriate sensor or sensing idea. I need to sense the level of a material hopper used in an injection molding machine. The sensor will be subjected to about 70deg C in the form of hot air passing through the material. The  sensing distance would be 0 to about 600mm with a lease count of 20mm. I guess an ultrasonic sensor would be out of the question, because of the heat and 0 sensing distance.The hopper lid would be opened and closed  to fill material by utterly callous personnel, so the sensor would have to be robust or ideally mounted in a way that the sensor is not affected by the opening or closing of the hopper.

B) There would be about 50 machines and the levels of each would be displayed on a notice board with LEDs in a column indicating the level of each hopper. I could use an ESP32 for each hopper and a Master ESP32 at the notice board. Is that feasible ? There is no need for any cloud based notifications at  the moment, but it could happen in future.

Any ideas would be welcome !

Cheers

Thomas

 

 


   
Quote
AndyD
(@andydowns)
Member
Joined: 7 months ago
Posts: 79
 

Nothing is immediately coming to mind but what is in the hopper. Is it plastic pellets? If so what size?

What level of accuracy do you need? Full, 3/4, 1/2, 1/4, empty, or better?

This post was modified 6 months ago 2 times by AndyD

Well, that could’ve gone better 😬


   
ReplyQuote
(@embsysdev)
Member
Joined: 10 months ago
Posts: 12
Topic starter  

@andydowns

Thanks for the reply...

Yes it is plastic granules.Size of each granule would be about 5mm, they are usually cylindrical or with rounded edges to flow easily in the hopper.

Full, 3/4, 1/2, 1/4, empty, or better?

Maybe 8 tranches would be better.

Also any suggestions on networking all the machines to a central display ?

Thomas

 

 

This post was modified 6 months ago by EmbSysDev

   
ReplyQuote
AndyD
(@andydowns)
Member
Joined: 7 months ago
Posts: 79
 

@embsysdev 

i was thinking about optical, but I think they would be too unreliable. I did a search and found these, which seem to be designed specifically for your use case.

IMG 9430

 

https://www.sick.com/br/en/industries/basic-materials/material/building-materials/level-monitoring-in-the-dust-hopper/c/p510999

On the networking front, something I am playing with is MQTT to allow devices to connect to a central point called a Broker. In my case this is run on a raspberry pi, but is also used in industrial settings.

Worth looking into.

There are lots of YouTube’s videos on the subject. This is one such series.

This post was modified 6 months ago by AndyD

Well, that could’ve gone better 😬


   
ReplyQuote
(@embsysdev)
Member
Joined: 10 months ago
Posts: 12
Topic starter  

@andydowns

https://www.sick.com/br/en/industries/basic-materials/material/building-materials/level-monitoring-in-the-dust-hopper/c/p510999

Thanks for doing some of my homework ... :o) , I have sent them a mail. I wonder it will be commercially viable, some of these sensors cost "an arm and a leg" .  But i guess we have to pay for reliability and support.

 

On the networking front, something I am playing with is MQTT to allow devices to connect to a central point called a Broker. In my case this is run on a raspberry pi, but is also used in industrial settings.

Thanks for the pointer.

I was checking ESP Now from Sir Dronebot and also this :

Any opinions ?

Thomas

 

 


   
ReplyQuote
AndyD
(@andydowns)
Member
Joined: 7 months ago
Posts: 79
 

@embsysdev 

I have no experience with ‘ESP now’ but from what I’ve read it is for connecting ESPs together and not to other things.

MQTT can connect sensors to PCs to RPIs etc. I’m going to use Mosquitto broker and connect several ESPs to it. There will also be a MQTT compliant mains relay connected to it to turn an extractor on and off.

There is also a program called Node Red that connects to Mosquitto and has a very configurable dashboard that can include various different gauges and so on. I think it will serve you well for being the central display for the hopper levels.

Well, that could’ve gone better 😬


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7939
 

@andydowns Correct, MQTT is more useful, but do NOT use Mosquito. Everyone can test there, but it crashes and is restarted all the time as it is a test mule. It is a simple matter to create your own broker on any computer you leave on all the time your MQTT traffic is possible. A Pi3 or 4 is ideal for that. Use mosquito to test then just change the broker to your own Pi.

I had heard of Node Red but thought it was a coding tool, did not know it was a dashboard, will have to check out, thanks.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
AndyD reacted
ReplyQuote
(@embsysdev)
Member
Joined: 10 months ago
Posts: 12
Topic starter  

I have no experience with ‘ESP now’ but from what I’ve read it is for connecting ESPs together and not to other things.

That actually works for me. Each machine would have an esp32. The central monitoring unit would also have an esp32. the display would also be a row of LEDs for each machine. Depending on the data from the individual machines , the LED display would get updated.


   
AndyD reacted
ReplyQuote
AndyD
(@andydowns)
Member
Joined: 7 months ago
Posts: 79
 

@zander 

Posted by: @zander

Correct, MQTT is more useful, but do NOT use Mosquito. Everyone can test there, but it crashes and is restarted all the time as it is a test mule. It is a simple matter to create your own broker on any computer you leave on all the time your MQTT traffic is possible. A Pi3 or 4 is ideal for that. Use mosquito to test then just change the broker to your own Pi.

 

Ron, does the RPI support MQTT as a part of its operating system, or are you saying another piece of software needs to be installed in place of Mosquitto?

If so, do you have any suggestions?

 

Posted by: @zander

I had heard of Node Red but thought it was a coding tool, did not know it was a dashboard, will have to check out, thanks.

 

It is a graphical coding app that supports dashboards.

This is an example:

Node Red dashboard example

 

Full youtube video here

This post was modified 6 months ago 3 times by AndyD

Well, that could’ve gone better 😬


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7939
 

@andydowns I will need to check, but if I figured it out it must be easy. I am sure it's an add on package and I am not sure if it's still installed, or how to tell. I just finished what I was working on, so I will give this query top priority (at 82 that could still be days) If I am slow, I bet @byron will know off the top of his head, he is the one who convinced me to try it.

I even have some on my iPhone and Mac, see pics 1st is iPhone, second is Mac

IMG 8550
Screenshot 2024 08 01 at 12.02.30

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
AndyD reacted
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7939
 

@andydowns I just pulled my old project to of the archives and did a few screen grabs. I think you are qualified enough to take it from there, but if you have any questions just ask. Screen grabs are NOT in any particular order. In case it isn't obvious, this library outputs to both MQTT AND regular Serial if it's connected. I used this tool to debug via Serial when I was connected, but in 'production' mode with no computer attached I just looked at my Pi screen. Great tool.

Screenshot 2024 08 01 at 12.07.27
Screenshot 2024 08 01 at 12.08.56
Screenshot 2024 08 01 at 12.11.19
Screenshot 2024 08 01 at 12.11.07
Screenshot 2024 08 01 at 12.09.11
Screenshot 2024 08 01 at 12.10.46

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
AndyD reacted
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7939
 

@andydowns I think I probably used the nerds instructions to set up the pi.

Do you have any pointers for me about node-red?

https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7939
 

@andydowns BTW, when I said do NOT use mosquito, I was referring to the public test broker, not the software. Use mosquito software, but your own broker if that makes sense.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
AndyD
(@andydowns)
Member
Joined: 7 months ago
Posts: 79
 

Posted by: @zander

Do you have any pointers for me about node-red?

 

Found this on YouTube. I haven’t watched this yet, but it seems to be fairly comprehensive.

 

Well, that could’ve gone better 😬


   
ReplyQuote
AndyD
(@andydowns)
Member
Joined: 7 months ago
Posts: 79
 

Posted by: @zander

@andydowns BTW, when I said do NOT use mosquito, I was referring to the public test broker, not the software. Use mosquito software, but your own broker if that makes sense.

 

Ah, that makes more sense. 👍🏻

 

Well, that could’ve gone better 😬


   
Ron reacted
ReplyQuote
Page 1 / 2