فوق العاده ممنون از اموزش های خوبتان ایا می توان از همین روش برای سنسور های IR هم استفاده کرد برای تشخیص فاصله
@robojax Жыл бұрын
سلام علیکم. مجرا (کانال) فارسی علم و فن را راه اندازی کردم: لطفا به دوستان تان خبردهید و حمایتم کنید. www.youtube.com/@ilmofan
@electronic79794 жыл бұрын
It was a useful and educational video. I watched it with pleasure.
@robojax4 жыл бұрын
Glad you enjoyed it!
@HAMMER_2.211 ай бұрын
Hello Ahmad, thank you again for your EXCELLENT videos! This video is going to help me immensely very soon. I will be having buttons in a steering wheel control several accessories. Since i am limited on how many wire traces can be in the clockspring device in the ateering wheel (sometimes called the airbag spiral cable), this will help to consolidate all my buttons into one wire for each group of 8 buttons (2 wires total for 16 buttons). As well as an illumination wire for the leds in the buttons (from my headlight signal), a 5v wires from my 5v supply, and then a ground wire which might be able to bypass and take a ground from the steering wheel itself as it is grounded. That is amazing because I have 6 wire traces available in my clock spring. Just wanted to again express my appreciation to your excellent , well made videos. Very easy to follow and understand most reasoning behind the project as an inexperienced arduino beginner. Cheers my friend
@robojax11 ай бұрын
Hello @hammer7338, I am glad you ound it useful. Actually this was requested by more than 2 persons and then I made the video. I have offered it two versions. you are looking at V2. There is V1 kzbin.info/www/bejne/g5a6mKGqZb5_oJo without the relay and might have some differences. Good luck with your project. Cheers
@aberateklehaimanot98044 жыл бұрын
just superb, thanks for explaining the code line by line,very educational vid indeed.
@robojax4 жыл бұрын
You are very welcome. I am pleased that you liked Stay safe.
@robertrobert55833 жыл бұрын
Thanks for posting this helpful video. The code is very elegant and well explained.
Can the pushbuttons be replaced with a keypad? I am designing an LED stairwell lighting system with a PIR sensor but would like to implement a keypad that would allow one to activate various different light patterns depending on the button pressed on keypad, ie. 1 = cascading effect, 2 = chasing LED, 3= comet effect etc. I find your videos extremely educational and truly appreciate that you explain the code line by line as it aids me in learning it instead of just assembling things.
@robojax Жыл бұрын
I am not sure how your project works, but I have explained it that the push buttons are connecting the circuit so the voltage is divided, now if you replace it with something else to do the same, I should work.
@jfrras10653 жыл бұрын
سلام بر استاد عزیز . تشکر بابت آموزش مفیدتان .
@robojax3 жыл бұрын
وعلیکم السلام. خواهش میکنم. سلامت باشید. .
@robojax Жыл бұрын
سلام علیکم. مجرا (کانال) فارسی علم و فن را راه اندازی کردم: لطفا به دوستان تان خبردهید و حمایتم کنید. www.youtube.com/@ilmofan
@NoelNoel-k3d Жыл бұрын
Hello and thank you for your tutorial, your work, Ahmad
@smartassist97003 жыл бұрын
MERRY CHRISTMAS FROM USA
@robojax3 жыл бұрын
Merry Christmas.
@aniketsawant84983 жыл бұрын
Hi Sir, My question is little off topic. I wanted to know whether to use anti-static bands while working with arduino boards, modules and sensors?
@robojax3 жыл бұрын
Hello, no you don't need it. I've been using for years and nothing bad has happened.
@josecorreia2584 Жыл бұрын
Supose I just want one output on each time when I trigger a pushbutton (upper) and other pushbutton triggering to down in reverse sequence. Additionally no matter you try to trigger in extreme positions the output doesn't change keeping allways on. Something like that sequence (0000/0001/0010/0100/1000). Can you give me a clue how to handling this chalange? tks in advance
@inspirasihidup223511 ай бұрын
This circuit is good. Can you add 1 more button to make it an on and off button in sequence, similar to a power sequencer, please make a method
@robojax11 ай бұрын
Put seem you may have not watched the video fully. You can do as many as you like as long as it helps voltage values so not overlap. Just try
@inspirasihidup223511 ай бұрын
I can make this. I can only follow and copy and paste the code. So please make it. Greetings, I'm from Indonesia I want a power sequencer like the Ashlly brand dbx tool name is power squencer@@robojax
@ztiger092 жыл бұрын
How did you calculate the voltage after you calculate the resisters in parallel?
@robojax2 жыл бұрын
Hi, you made me watch the video. I have explained it. This video is Version 2. there is Version 1. But in both I have clearly explained it if you don' t skip and watch it fully. it could not be done better than this.
@RDDTVCEBU3 жыл бұрын
Nice content and well explained
@RoMecha_lb3 жыл бұрын
Great work👍👍,up up up
@robojax3 жыл бұрын
Appreciated
@RoMecha_lb3 жыл бұрын
@@robojax 👏👏👏👏
@ernstgennial70644 жыл бұрын
As allways, very good video!
@robojax4 жыл бұрын
Glad you enjoyed it!
@israeljmtd1667 Жыл бұрын
hello my name is israel hailu, am trying to build a DIY force feed back steering wheel and I want to include 8 or more buttons with three output like this, the code (firmware) uploaded on the arduino leonardo support buttons on the digital pin when 1 wire of the button connected to one digital pin and the other to the ground. but since I don't have enough digital pin to incorporate 8 buttons. so can I use this button circute configuration without the code in my project
@Delorean293 жыл бұрын
I like! Can I add SD card player for Arduino and active tex 20 button with 20 sounds??
@robojax3 жыл бұрын
sorry I did not understand what you are trying to do .
@vivekmehta51723 жыл бұрын
MIN AND MAX VOLTAGES ON THE VOLTAGE DIVIDER Suppose we need 10 buttons We need 10 resistors in the voltage divider Suppose we use +/- 10% tolerance resistors The voltage on the first tap closest to ground will nominally be 0.1 of the Vcc However the maximum voltage that can be present on the 1st tap is when the first resistor is the biggest ie 1100 ohms and the other 9 resistors are the smallest ie 900 Ohms each The total resistance of above situation will be 9200 ohms and hence the maximum voltage on the first tap will be 1100/9200 of the Vcc ie 0.1196 of the Vcc So we see that 10 resistors of 10% tolerance can lead to almost 20% deviation on the first tap. If we use 10% voltage window in the Arduino code, there is a possibility that there will be troubles in reading the resistors that are closest to ground. I mean, suppose we program that the allowed voltage on first tap is (0.1 of Vcc +/- 10%), but the mathematics say that 10% tolerance resistors can lead to 20% deviation on the first few taps, and we therefore receive a voltage of (0.1 of Vcc + 20%), then the program will not be able to allocate this voltage reading to a button and that key press will therefore be ignored. The way to solve this issue is that for 10 resistors in the voltage divider, the first 4 or 5 resistors of voltage divider closest to ground should be 1% tolerance and the rest can be 10% tolerance. This makes sure that the voltages at each tap are within +/- 10% of the nominal value or better still, all resistors should be +/- 1% tolerance.
@robojax3 жыл бұрын
this video has two versions. watch the other version of this too.
@vivekmehta51723 жыл бұрын
Thank you brother Ahmad Please be kind to inform me the link to the other version of this video. I learnt a lot from your video. Thank you
@francoisperreault81142 жыл бұрын
Hi Ahmad, Hi Ahmad, I would like you to make a very simple video with as simple programming as possible that by pressing a simple push button an LED lights up but only goes out after a certain period of time. predetermined time. (OFF DELAY). Thank you very much Ahmad.
@robojax2 жыл бұрын
I have the video kzbin.info/www/bejne/aIjalpd5h9ygnaM always search my channel
@robojax2 жыл бұрын
Here my friend. I just made the video when you asked for it: kzbin.info/www/bejne/bam3eZR8maisl6s
@noelbriguez316610 ай бұрын
what is the name of control module before the relay module?? can i replace this to the bottons of amplipier converting into differend functions instedad of valve??
@robojax10 ай бұрын
which module? the Microcontroller? that is Arduino and the whole video is about Arduino. I have two or three courses on that. One of them starts from this video bit.ly/sunfouder
@ESwitchInc4 жыл бұрын
Excellent stuff as always!
@robojax4 жыл бұрын
Thank you! Cheers!
@eletronicaeautomotiva4 жыл бұрын
Very good, excelent.
@robojax4 жыл бұрын
Thank you! Cheers!
@ThomasDiPalmaAustralia2 жыл бұрын
The code referenced in the video is different to the code linked in the description. The linked code doesn't work.
@robojax2 жыл бұрын
Thank you for letting me know. I just added the link to Version 1 and Version 2 of this video. You could have searched. I tested the search and it worked if you typed push button or 10 push button. By the way you are watching V2, here is Version 1 kzbin.info/www/bejne/g5a6mKGqZb5_oJo
@elmermandiade73093 жыл бұрын
Nice and detailed sir,...will this works on esp32? Thanks Sir!
@robojax2 жыл бұрын
This code won’t work.,You are welcome. The best thank you for me is to subscribe to my channel. Thank you.
@ztiger092 жыл бұрын
Hi I also have another question. I would you add in the code to have a specific button to turn on a specific led or relay to turn on and but then automatically off for a couple of seconds?
@robojax2 жыл бұрын
Hi, this could be done in two ways. add delay right after turning the relay on like delay (3000); 3000ms = 3 seconds then turn it OFF and add delay . but this will keep the system waiting until the time is over. the other way would be to use millis() which will not keep waiting . here is the video on millis() kzbin.info/www/bejne/pZOliWyerq1oo68 . all my codes and videos are free. but if you need specific project, you can pay me to wrote code for you. contact me via robojax.com contact page. minimum cost if $100. Thanks
@homepcq7034 жыл бұрын
Hello Sir, I'm just beginner and stared Arduino programing 2 months before...….While complying this code, I'm getting error as 'analogReadResolution' was not declared in this scope....Please advise....Thank you so much for great educational video.
@robojax4 жыл бұрын
Hello, if you've watched the video and read the line in the code, analogReadResolution(BIT_SOLUTION);//for Due, MKR only is says as comment //for Due, MKR only it means if your Arduino board is Due and MKR, then use this line. else, comment it out. meaning put // at the beginning of line so it doesn't belong part of the code. Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
@homepcq7034 жыл бұрын
@@robojax Thank you so much.....You are a great instructor....
@ztiger092 жыл бұрын
Hi there, I was able to get the six relays to turn on but I'm having trouble with the last two on. I first test out with 8 led lights and it works fine then I tired the relays. I was wondering if the adruino board supply limited amount of current depending how many pins is being use or if the adruino board is not receiving enough power or should I consider getting a new 8 channel relay?
@robojax2 жыл бұрын
Hi, I am not sure which version of Arduino you have and also how you powered it up. So first measure the current of one relay when it is ON and multiply it by 8 if for example each relay needs 70mAx8=560mA is the total. if you are powering it from USB, then most USBs can supply to max of 2000mA and there should not be any issue. but if you are powering it up via power adapter like 9V or 12V, then the converter on the Arduino board determines how much current is passing at 5V power. Check that 5V converter chip. The best way would be to supply independent 5V directly to the relay module. Search my channel for 8 or 16 channel relay. Good luck
@ser7ser7i4 жыл бұрын
good job, thank you for sharing.
@robojax4 жыл бұрын
Thank you too!
@vivekmehta51723 жыл бұрын
Dear Ahmad, was there any need to debounce the switches ? Were there any glitches due to no debouncing code ?
@vivekmehta51723 жыл бұрын
Thanks Blondie ! Please guide me to time code in video where Ahmad showed noisy switches and where he added debounce code. Ahmad's code is slow since he calculated some values over and over again in his loop instead of once in his setup. Also he added some 100ms delays. Are these delays sufficient to debounce ?
@nicasiosalonga8804 Жыл бұрын
can you create a code for 1 button to turn on all 1 - 10 led's one by one until all 10 led's are lighted on?
@robojax Жыл бұрын
you should have searched my channel. here is the Ultimatge LED video kzbin.info/www/bejne/hYTanZh5d9Geq6s
@daemon3spade3 жыл бұрын
Can you show us how you did the 10-button?
@robojax3 жыл бұрын
That is exactly why I made the video. It has been explained fully
@Seoulhawk012 жыл бұрын
Would it be possible to trigger multiple pins and or send out rs232 commands? I need seven buttons each will trigger up to four relays with one relay being turned off then on again about 3 seconds later. Also need to have it send out rs232 commands on three ports (Arduino Mega). I can only have one button active at a time. Am I going down the right path using this example?
@robojax2 жыл бұрын
No sure what you are doing. But you gotta break it down into sending command via RS232, then controlling relay, then timing management. first find a way to send commands and be able to print it on serial monitor. This video is not helping.
@Seoulhawk012 жыл бұрын
@@robojax Thank you for your response. I really like the idea of using analog input and tracking the voltages. I have a code now that I am using, but one of the seven buttons is acting up, and I can't find the reason why. I would be happy to show you the code if you can tell me where to send it.
@robojax2 жыл бұрын
this is Version 2 of the same idea. but the first V1 does not have relay. your issue might be the wiring or wrong value of resistor if your code is okay.
@5VoltChannel4 жыл бұрын
Nice 👍👍 i like this.
@robojax4 жыл бұрын
Thank you! Cheers!
@pookoye3 жыл бұрын
Is it possible Arduino Nano can handle 4 Relay, 4 Touch Sensor, one Ultrasonic Sensor, one OLED & one buzzer (all in one circuit)
@robojax3 жыл бұрын
wow. yes possible. 4 project together. You should have posted this comment either under 4 channel touch , or 4 channel relay, or ultrasonic or OLEd. get them and combine them. I've explained each fully so you watch, learn and combine. Good luck.
@nitro_nxd2201 Жыл бұрын
Assalamualaikum! Can i make it so the button makes sound when pressed and how would i
@robojax Жыл бұрын
Walaikum Salam, yes search for buzzer in my channel
@rojatek3 жыл бұрын
sir ... please help .. i need more push button and relay about 45 pcs . how to do using arduino .. thankyou ..
@robojax3 жыл бұрын
making 10 push buttons from one input was a revolution that I made. now 45 is extreme but possible with multiple inputs. I used it one Analog input A0 , you define all variables for A1 which adds 10 more and the the same for A2, A3, A4 and A5 which you can get total of 50. Just watch the code section of the video 2, 3, 5 or 10 times so you know how it works and write it. it is very easy. Why easy? because I have explained everything . This is I learn when I want to learn something. Of course if there is proper tutorial or document which in this case there is . Good luck.
@naeembaloch674 жыл бұрын
Sir. Make water level with float sensor and seven segment display and 9 level and tenk is full motor auto off and inqulod buzzer alarm Thanks
@robojax4 жыл бұрын
sure the video is coming in 1 or two months. I have the components.
@naeembaloch674 жыл бұрын
@@robojax ok sir👍👍
@sholehuddin74653 жыл бұрын
Assalamualaikum, how to make it if I want to use ttp223 sensor for replace the button?
@robojax3 жыл бұрын
Walaikum Salam, Search my channel for the touch sensor and connect the output to this. It should be simple. I have explained it fully, you gotta learn and so it, you can’t blindly do it.
@opelcambo3 жыл бұрын
Hello although the Arduino board is 5v. Is there a way to allow incoming voltage to be 12v. I would like to make a program or code so that when I deliver 12 V somehow to the Arduino board but it runs Some code to turn an LED on. Ultimately I would like to have three options. I would like to have three inputs that are each 12 vaults each. but somehow separate them so the Arduino board can detect the difference between them. And I would like these inputs to be able to operate three leds. Can you help me
@robojax3 жыл бұрын
Here you can measure any voltage with arduino kzbin.info/www/bejne/qmnbqKWMn5eUfNU
@opelcambo3 жыл бұрын
@@robojax thanks what country are you in
@aarontaylor71503 жыл бұрын
Hi I'm new to Arduino programming I'm trying out the code but I keep getting errors missing terminating character and void control output if you can help thanks
@robojax3 жыл бұрын
It means you have changed the code or have not copied it properly
@anandarout94923 жыл бұрын
10 push button and 10 LED between two arduino serial communication make video
@robojax3 жыл бұрын
have you subscribed?
@romilaranas8652 жыл бұрын
How i can disable the input button while other button pressed
@robojax2 жыл бұрын
It is already disabled. You can’t read all the switches at once
@romilaranas8652 жыл бұрын
press button 1 the relay is on if i press the button 2 the relay 1 connect to button 1 if possible turning off i press only the button 2
@coleowens56272 жыл бұрын
Hello sir, is there a way to make the output happen after a combination of the buttons? Like you push button 1, then 3, then 2 and the output happens. Please help.
@robojax2 жыл бұрын
Hello, not possible because the cviltage is equally calculated and some of any switch is equal to voltage of a switch. Watch fully as I have explained it fully.
@coleowens56272 жыл бұрын
Thank you for the reply sir, do you have a video on how to accomplish what I am trying to do? Or any idea how to
@robojax2 жыл бұрын
Yo accomplish what? To control multiple relay with push buttons? I have so many videos on relay . How’re is how to find a video in a KZbin channel kzbin.info/www/bejne/hZnOhpabd7yWftU
@kumabiadki65464 жыл бұрын
What happened if you will press an hold for a while two or three buttons at the same time?
@robojax4 жыл бұрын
you will always get ONE voltage which fits to value of a push button and that value will be displayed. no harm.
@vivekmehta51723 жыл бұрын
@@robojax Following possibilities also exist A) you press 2 buttons, the voltage that is read corresponds to another button that was not pressed, so the action associated with a non pressed button is done. B) it's also possible that the voltage generated by pressing multiple buttons does not get recognised as corresponding to any single button, then the program does nothing.
@vivekmehta51723 жыл бұрын
Thank you sir !! I wanted ask you, are there lots of code in the loop which actually should have been executed only once in the setup , like the calculations of the expected voltages and tolerances in those voltages ? Would it have been better to calculate all those variables only once in the setup, put in an array and access the variables from the loop without repeated re-computation ?
@robojax3 жыл бұрын
Hello ., anything that is not needed repeated calculation, would be good idea to have inside the setup. I don't remember what I did in this video. but if there is such thing, move them inside the setup. You are welcome. Please subscribe. I appreciate it and helps my channel grow. Thank you
@Elyasssmart13 жыл бұрын
سلام علیکم چطوری همزمان ۳ دکمه ازین ۱۰ دکمه را فشار بدیم متوجه بشیم؟؟؟
@robojax3 жыл бұрын
وعلیکم السلام ، خوب باید یا آرایه از محاسبه تمام حالات ممکنه دکمه ها که منجر به ایجاد یک ولتاژ خاصی میشود را ایجاد کرد و هرزمانی که همان ولتاژ خوانده شد میشود فهمید که کدام دو دکمه فشرده شده اند. اما ضریب دقت شاید ۵۰ تا ۶۰ فیصد باشد. این گفتارم بدون مخاسبه ابراز شده . شاید هم نتیجه ای غیر ازین گرفت. اما پروژهٔ جالبی خواهد بود .
@mahbuburrahmanrahman26773 жыл бұрын
Assalamualikum, Hope you are well. You are very experienced regarding arduino/ESP boards and I need your guidance/assistance that is Do you tell me Is it possible to control AC FAN dimmer (with zero cross detection) both By two Physical push BUttons (for speed increasing and decreasing) manually and also By Blynk app slider button for controlling speed through wifi.only zero cross detected esp8266 family board and blynk app slider button based AC fan dimmer code is available in internet but those are not manually controllable at all when wifi is not available. I ask the question because facing very difficulties to write the code for integrating push button function with only wifi controlled code (By blunk app slider button) . do you know is it possible or not ?
@robojax3 жыл бұрын
Walaikum salaam, my only experience with dimmer is this kzbin.info/www/bejne/sHu0l2mYg9SXnqc and have no experience with any other board. the comment should have been posted under a dimmer. I don't know why you posted here.
@HAMMER_2.210 ай бұрын
Hello Ahmed! I want to ask, do you accept suggestions for art reno projects? Or is there a way I can pay you to create a solution for me using arduino? I I'm hoping to create a Project with artino which involves pressing a momentary Button one time to turn on an output, But if the same button is pressed twice within one second, it will turn on a different output. So one button to turn on Different Outputs depending on if the button is pressed one time or 2 times within 1 second. Please let me know if you can help me to create this project. I am willing to pay you for your help. If this is at all possible. thank you again for your wonderful videos. They help me so much. Richard from San Diego
@robojax10 ай бұрын
Hi, you could hire me, I am on vacation for 3 weeks starting today. If you needed me after that contact me via Robojax.com contact page from the link at the bottom of page. I can help you.
@HAMMER_2.210 ай бұрын
THANK YOU!! I will be in contact after your vacation! Do you have a rough, general idea of what your service would cost for designing such a project? I understand if this is best said through another form of contact. Cant wait to chat further! I am excited for what can be done with Arduino!! @robojax
@naeembaloch674 жыл бұрын
👍👍👍👍👍👍👍
@robojax4 жыл бұрын
😊 👍 🔔
@abdussabur45942 жыл бұрын
10 output 1 input by 1 push button
@robojax2 жыл бұрын
Bu that is very easy and doesn’t need any resistor.
@robojax2 жыл бұрын
Here you can learn it from this video kzbin.info/www/bejne/hYTanZh5d9Geq6s