I am new to this forum. I am working on a project that needs weight sensor triggered display and led blinking. The steps are
Measure the weight (say 50 kg)
Add a switch which allows me to select a particular weight after measuring (say 25 kg)
Then connect to a display which displays " good"
if the weight is reduced to 25 kg and blink a green LED
If the weight is more than 25 kg then "reduce" in the display and red LED.
If the weight is less than 25 kg then "increase" in the display and yellow LED
All this should happen in real time.
So what are the components required. As of my understanding I need load cell, amplifier and Arduino. No idea about the switch. Please help.
I moved your topic to an appropriate forum category @thirumalaya .
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
A switch is one of the simplest components. Just do an Amazon search and you will have thousands to pick from. It sounds like you only need a SPST (Single Pole Single Throw) switch.
If I understand your application this is what you need. You can do a pinmode(pinBtn, INPUT_PULLUP), connect button to that pin and Ground. When you read a LOW signal on the button pin it is pressed. NOTE Use one of many Button libraries so you get bounce detection and elimination done for free.
How?
Physically changing switch position or on the code using push button? There are display modules with push buttons on board.
What arduino you are planning to use? HX711 load cell amplifiers are commonly used, but in case you use 3.3V arduino board I suggest to pick the red one from Sparkfun.
Thank you very much. Sorry for the late reply. But actually I am looking for manual switch to select the weight. Then the system has to indicate yellow, green or red signal (LED) based on the weight given in the real time comparing the weight selected. Thank you.
Thank you very much. Sorry for the late reply. Yes I am looking for manual switch to select the weight. Then the system has to indicate yellow, green or red signal (LED) based on the weight given in the real time comparing the weight selected. I am planning to use HX711 with arduino. Thank you.
Do you mean there is only a single weight selectable? That’s the only situation in which a simple toggle switch would be suitable, Otherwise (taking the simplest example) you need a multiple way rotary switch. Such as a 1P x 10W, etc.
Of course, several other approaches, like successively pressing a button., or a rotary encoder with an LCD display, or a number of LEDs, etc.