How to Make Arduino DIY Game Controller and Create Game with Unity

  Рет қаралды 90,038

Maker 101

Maker 101

Күн бұрын

Пікірлер: 117
@maker101io
@maker101io 3 жыл бұрын
Source Code: create.arduino.cc/editor/mertarduinotech/68dcb5e9-5bc2-4e60-bda6-e772404f150c/preview Recommended Items: Use Your Muscles in Project - amzn.to/3wdL45C​ 37 Sensor & Module Packages - amzn.to/3m66WeQ​ Try this Robot Arm - amzn.to/3fq8DCl​ Best Resin 3D Printer - amzn.to/39tY8KB​ Arduino Compatible Kits - bit.ly/2J2AFF7​ Banggood Spring Sale - bit.ly/3slMbOn​
@emremer2
@emremer2 4 жыл бұрын
Çok iyi! İki harika şey birleşse ne güzel olur.. diye araştırırken, aynı topraklardan birisinin bunu 3 yıl önce yapmış olduğunu görmek gurur verici. Her zamanki gibi eline sağlık üstat. Devam!
@splashillustrations3181
@splashillustrations3181 8 жыл бұрын
These tutorials just keep getting better! :-)
@thomasalexander1563
@thomasalexander1563 8 жыл бұрын
Again,, Amazing tutorial again,, With simple stuff,, This channel must more like subscriber...
@davidaristizabal1591
@davidaristizabal1591 8 жыл бұрын
Great tutorials. Would it be possible to have a tutorial like this but using hall sensors instead of potentiometers? It would be great.
@budangtv3642
@budangtv3642 7 жыл бұрын
hey I tried to make this project but when I test it.. my control has a very long delay .. and it will just spin around even if I am turning the pot. it will read the potentiometer after almost half a minute. I don't know if it is because of my connector . but I followed your instruction and there is no error in my code. please help me. thanks in advance
@oliverpianoyt8187
@oliverpianoyt8187 7 жыл бұрын
Just change to yield return null in the coroutine, insted of yield return new waitForSeconds.
@dboer6545
@dboer6545 7 жыл бұрын
Look for UnoJoy
@tin171
@tin171 5 жыл бұрын
put 0 in WaitForSeconds
@solomon8128
@solomon8128 5 жыл бұрын
I met the same problems,bro,have you solved that?
@RMW360
@RMW360 7 жыл бұрын
Unojoy is the best option to use uno as a controller . Unojoy act as a real game controller to the host USB (even work on smartphone ) . So we can play any games with this.
@jr.programmer5927
@jr.programmer5927 7 жыл бұрын
Very Nice Video BT how will the computer detect the console?
@guilhermeaguiar729
@guilhermeaguiar729 4 жыл бұрын
hello, for the video, I want to ask a question, I wanted to know if you can use these controls on your cell phone, as if it were a proper cell phone control thank you!!
@jayeshsawant6734
@jayeshsawant6734 8 жыл бұрын
When is the next Processing tutorial coming? Cool project man!
@markcox3702
@markcox3702 6 жыл бұрын
Just curious, is there a more robust way to check/use serial ports? I’m thinking of telling the code to try all serial ports at first, and listen for an ‘identifier’ from the Arduino. This should eliminate the need to match ports manually. Is there already a more efficient/easier way to do this? Or am I a prodigy programmer? Thanks!
@DesignerTechKreativity
@DesignerTechKreativity 5 жыл бұрын
Great video @Mert_Arduino, I like the way you show How to setup the physical wiring and the use of the foam as a base. So smart! For information, there are some no coding solutions available for unity that can control Arduino and even the Arduino just needs one standard sketch, so no custom code needed.
@riseoftech4k332
@riseoftech4k332 8 жыл бұрын
so cool love your work man
@Avionics2
@Avionics2 8 жыл бұрын
beautiful work well done!!
@samialfarra4275
@samialfarra4275 7 жыл бұрын
thank you so much . can make it wireless not serial port ?
@bhavnasadrani4625
@bhavnasadrani4625 7 жыл бұрын
i can use other racing games that are maked by other? which game is compatible for this?
@adityasidham1812
@adityasidham1812 8 жыл бұрын
just amazing as it could be😊 very nice
@jasondesmons1087
@jasondesmons1087 7 жыл бұрын
Will this work with other games or would I have to optimize it for certain things like that
@prajjwalsingh6481
@prajjwalsingh6481 8 жыл бұрын
than the software of previous project we have to delete or not ?? explain me about this .
@YosiWolfson-j1c
@YosiWolfson-j1c 2 жыл бұрын
Hi, We want to implement your setup shown here in UNREAL 5; 1. Are the physical components still valid for this, are there newer parts you might recommend? 2. Do you think this plugin will work with this physical setup?
@kvlpnd
@kvlpnd 8 жыл бұрын
Excellent!!!! once again.
@kawaiiyogurtasmr6885
@kawaiiyogurtasmr6885 7 жыл бұрын
This is great, very original video :)
@mr.n01ce
@mr.n01ce 4 жыл бұрын
nice idea! but this stering wheel can + with xbox 360?
@nathangamer21videogamefan50
@nathangamer21videogamefan50 7 жыл бұрын
This is going to make me learn thanks your the best!🙂
@prajjwalsingh6481
@prajjwalsingh6481 8 жыл бұрын
same arduino can be used in different projects or not ??
@sarthakghosh1635
@sarthakghosh1635 7 жыл бұрын
Could you try to connect the arduino as a gamepad controller and use the potentiometers as joystick axes in Unity?
@lorenzooperti2694
@lorenzooperti2694 7 ай бұрын
mom : u cant have a racing setup for xmas. me : sure thing.....
@izstone3336
@izstone3336 7 жыл бұрын
Can you use a small breadboard
@budangtv3642
@budangtv3642 7 жыл бұрын
Mert Arduino and Tech please help me with my problem sirs. :(
@pavankumar693
@pavankumar693 8 жыл бұрын
excellent video!!
@mariacancino95
@mariacancino95 5 жыл бұрын
This tutorial is real good!, i have to make a control similar for school but sadly i dont know how to make this into a haptic, if you know how to could you explain how to make this control vibrate when there is a collision in the unity game?
@oscarchan2624
@oscarchan2624 6 жыл бұрын
hi, I love your video and was planning to make my own controller for a game but I'm stuck with some problems (like everything) is it possible if you can build a flight controller that transfer your input into computer?
@oscarchan2624
@oscarchan2624 6 жыл бұрын
what board/program/should I get to build the controller?
@alejandrofonseca542
@alejandrofonseca542 4 жыл бұрын
Hellow Bro! A Question, Wich asset did you use, Cause I cannot try your Script Could you help me bro !
@kaanekz
@kaanekz 8 жыл бұрын
Merak etiğim bir konuydu teşekürler 😊😂
@tychon_15
@tychon_15 5 жыл бұрын
Tek Türk Ben Değilmişim ;)
@syaifulanwar6976
@syaifulanwar6976 6 жыл бұрын
do you have tutorial game wireless controller for unity?
@jordankim9717
@jordankim9717 7 жыл бұрын
Hey Thanks for the tutorial. I have one question. When I follow your circuit, I start to get a smoke in the 10k potentiometer that is plugged to a0. How can I fix this problem?? thanks!
@jordankim9717
@jordankim9717 7 жыл бұрын
Mert Arduino and Tech Thanks for the reply! Ive double checked my connection and everything, the potentiometer does function in unity as controller, but after awhile it starts to smoke. The potentiometer seems to be not the problem since ive tried swapping the acc/deacc one to the handling one. Could it be because its giving too much voltage to the first potentiometer and the far one is fine because it receives less??
@snehalukarde2476
@snehalukarde2476 3 жыл бұрын
hello could you please share link of vehicle(asset) which you have used in this game
@izstone3336
@izstone3336 7 жыл бұрын
Thanks for answering
@MoeTheBroYo
@MoeTheBroYo 7 жыл бұрын
Thank you for this tutorial! I wonder if you still take questions here, but, I'm running into a problem in general when it comes to my arduino and unity. I keep getting an "IOException: Access is denied" error when the port is being opened. Thoughts?
@pbj7654
@pbj7654 6 жыл бұрын
i had that error i closed my serial port that was open while i was checking my pot values see if that helps
@blaiseflorendo3967
@blaiseflorendo3967 6 жыл бұрын
What unity version did you use?
@shielamalazarte5464
@shielamalazarte5464 7 жыл бұрын
Is it possible to connect this in phone and controlled by this?
@hrishigaikwad3655
@hrishigaikwad3655 7 жыл бұрын
Hello there.. I m making a very similar project to this one.. Only difference is that my hardware simulator consists of accelerator brake and steering wheel.. will this code work for my setup too?? Plz replr soon!!
@pbj7654
@pbj7654 6 жыл бұрын
was a great tutorial :) im having a problem though im getting a delayed output after i change the values from the pot(i.e the accelerates about 5 to 10 seconds after i change the change the values of the acceleration pot) could you please guide me to how i could solve this problem thanks in advance
@pbj7654
@pbj7654 6 жыл бұрын
Please reply
@solomon8128
@solomon8128 5 жыл бұрын
Have you solved this problem, bro,I just stuck this problem too
@gijshabets2804
@gijshabets2804 4 жыл бұрын
@@solomon8128 same here ....
@jasonthemanarnold1878
@jasonthemanarnold1878 5 жыл бұрын
Can use little breadboard?
@micologia
@micologia 6 жыл бұрын
maaan, 12 minutes listening to this song. It is like calling an ISP and they putting you on hold
@arnavjaiswal9350
@arnavjaiswal9350 7 жыл бұрын
Hi mert this project is awesome but I use a macbook and it displays All compiler errors have to be fixed before you can enter playmode! UnityEditor.SceneView:ShowCompileErrorNotification() it does'nt allow me to play the game I even changed the port name but it does not allow me to play the game please comment quick!!
@pclirdzxdxd2060
@pclirdzxdxd2060 6 жыл бұрын
help using Unity Standard Asset.CrossPlatformInput? install?
@kaanekz
@kaanekz 8 жыл бұрын
Hocam diğer uyunlarada baglana bilirmi ?
@ahmedsaman3070
@ahmedsaman3070 8 жыл бұрын
❤️❤️❤️❤️❤️❤️amazing
@ahmedsaman3070
@ahmedsaman3070 8 жыл бұрын
Mert Arduino Tutorial & Projects where are you !!!! 😭😭😭 miss your video!
@ahmedsaman3070
@ahmedsaman3070 8 жыл бұрын
Mert Arduino Tutorial & Projects 😔 where are you 😔
@arnavrajesh2864
@arnavrajesh2864 8 жыл бұрын
Great project (can games work in processing)
@arnavrajesh2864
@arnavrajesh2864 8 жыл бұрын
Yeah
@ibnelaiq
@ibnelaiq 7 жыл бұрын
What does this error means "System.OI Expcetion." & Serial wouldn't open
@ryansunarto4532
@ryansunarto4532 7 жыл бұрын
hello bro... I have try your tutorial above, and it works!!!! but, I want to try for my script. I have a C# script for moving an object like "cube". And I use potentiometer as input. And use your code for Arduino, but it doesn't work. Can you help me bro..?
@hamzausmani8015
@hamzausmani8015 6 жыл бұрын
Hi I'm new in unity my question is...is the car asset free on unity or do we have to buy them
@harissabotic5714
@harissabotic5714 6 жыл бұрын
It's free.
@sleeper9613
@sleeper9613 6 жыл бұрын
Merhaba mert, bunu bilgisayara uygulamak mümkün mü? Uno bildiğim kadarıyla (ATmega 328p için) HID değil.
@ruhsuzat9291
@ruhsuzat9291 6 жыл бұрын
abi bu direksiyonu sadece yaptığımız oyundamı kullanabileceğiz ??
@F_N9901
@F_N9901 7 жыл бұрын
u r tooooo awesome
@10gbo_pizza
@10gbo_pizza 4 жыл бұрын
Its showing me this: [I had connected the Arduino to my pc via usb, so it might have something to do with the serial port as written] IOException: No such file or directory System.IO.Ports.SerialPortStream.ThrowIOException () (at :0) Can someone help?
@mbchannel1037
@mbchannel1037 7 жыл бұрын
Sir, will u show us how to build pedal racing sim using arduino?
@yassineraoufrebei8810
@yassineraoufrebei8810 Жыл бұрын
can you drop the Unity part ?
@LeonSafal
@LeonSafal 8 жыл бұрын
hey can I play other games like gta vice city with this?
@godofwar-fe8nv
@godofwar-fe8nv 8 жыл бұрын
Nice vedio
@ibnelaiq
@ibnelaiq 7 жыл бұрын
Sir How import a asset that you import plzz help SiR
@selvadigital7717
@selvadigital7717 7 жыл бұрын
super job
@10gbo_pizza
@10gbo_pizza 4 жыл бұрын
It aint working in the new version of unity tho :(
@abdulmuiz6875
@abdulmuiz6875 5 жыл бұрын
How to adjust it's sensitivity
@mustmust5989
@mustmust5989 5 жыл бұрын
can this work without unity ?
@kursadturkmenoglu9593
@kursadturkmenoglu9593 6 жыл бұрын
ardiuno yu oyun ile nasıl haberleştirdin? başka oyunlar için de yapmak için bir yol olmalı.
@chiajingfeng9881
@chiajingfeng9881 8 жыл бұрын
can create the game with phone?
@erdemberkcihan1865
@erdemberkcihan1865 8 жыл бұрын
mükemmel eline sağlık
@adityarai7674
@adityarai7674 8 жыл бұрын
please make a vedio how to make cnc
@lawrencemao6519
@lawrencemao6519 8 жыл бұрын
I tried to follow but I ran into two problems, can you help me? 1. The camera wouldn't follow my car 2. I don't get how to run the arduino and unity programs at the same time Thanks
@lawrencemao6519
@lawrencemao6519 8 жыл бұрын
Thanks for the response! I pasted the code from your website but was still unable to control the car with the potentiometers. I wired everything the same way.
@lawrencemao6519
@lawrencemao6519 8 жыл бұрын
I managed to set the camera by dragging it under Car but I'm still figuring out how to get it to work with my arduino setup.
@lawrencemao6519
@lawrencemao6519 8 жыл бұрын
The Unity Console is giving me this error message: *IOException: No such file or directory System.IO.Ports.SerialPortStream.ThrowIOException ()* I clicked on it and it highlighted the "Car" hierarchy. I am currently unable to control the car using the keyboard. Did I accidentally delete something?
@lawrencemao6519
@lawrencemao6519 8 жыл бұрын
Oh wait, I think it may be because of this line of code: SerialPort seri = new SerialPort("COM6",9600); How do I know which Com port I'm using?
@lawrencemao6519
@lawrencemao6519 8 жыл бұрын
I went to tools -> port and instead of being COMx, mine said "/dev/cu.usbmodem1421 (Arduino/Geniumo Uno)" Do I enter this string into the code?
@chamithmayura302
@chamithmayura302 8 жыл бұрын
can you give download link of your game which is play on tutorial video,because I made a game with unity,but it didn't work,all hardware and arduino codes working correctly,so I selected right COM.PORT of arduino uno correctly, but finally it didn't work,please
@chamithmayura302
@chamithmayura302 8 жыл бұрын
i chatted with your brother,and he told that tutorial video's game in your pc,can you send me unity game file (in tutorial video)e-mail to my address,(chamithmayura1995@gmail.com),i am big fan of your youtube channel.it is excellent
@chamithmayura302
@chamithmayura302 8 жыл бұрын
thanks mert
@budangtv3642
@budangtv3642 7 жыл бұрын
can i also get the files because i tried making this but it really has a delay of 30 seconds before reading what arduino is sending to the com port. i followed your instructions i also copy and paste your code for the unity3d .. still the same problem occured. im making this as my project so i really need help.. chad_manila@manilapower.net .. there is my email address. hope you can send it.. thank you in advance. :)
@prajjwalsingh6481
@prajjwalsingh6481 8 жыл бұрын
ok thanks allot bro
@codingtimes3199
@codingtimes3199 8 жыл бұрын
good
@akshaygaonkar7090
@akshaygaonkar7090 6 жыл бұрын
how to play other games using this controller?
@kundanagarwalla4958
@kundanagarwalla4958 6 жыл бұрын
Can we any other material instead of foam
@iProgramInCpp
@iProgramInCpp 7 жыл бұрын
It's bad habit to hardcode the variables. Maybe you will plug it in the wrong port! You have to have the choice to select the ports.
@resa-kt1nd
@resa-kt1nd 6 жыл бұрын
I can not use System.IO.Ports how can i fix this
@diegoarmandoronaldinomezap5379
@diegoarmandoronaldinomezap5379 6 жыл бұрын
Mi estimado , configura Netframweokr 4.0
@amirwilf6214
@amirwilf6214 8 жыл бұрын
plaese make a tutorial to rfid
@wilsonfisk6156
@wilsonfisk6156 7 жыл бұрын
what if i have 1k potentiometer?
@wilsonfisk6156
@wilsonfisk6156 7 жыл бұрын
Mert Arduino and Tech hmm, i think i messed sth up in unity, cuz its not working but i will have more time with it soon
@adityarai7674
@adityarai7674 8 жыл бұрын
please tell how to fix ardude verification error
@adityarai7674
@adityarai7674 8 жыл бұрын
Mert Arduino Tutorial & Projects when I uploaded my any code this error is coming
@slayerdaku7012
@slayerdaku7012 7 жыл бұрын
Please make a steering wheel using arduino or raspberry pi to drive the car in gta games
@selvadigital7717
@selvadigital7717 7 жыл бұрын
i like it
@autobotoctolingthomasho3362
@autobotoctolingthomasho3362 7 жыл бұрын
Cool
@ErtugrulK
@ErtugrulK 8 жыл бұрын
Bundan sonra Türkçede açıklama istiyorum İngilizcem tam yetmiyor
@anasali-xv9dt
@anasali-xv9dt 8 жыл бұрын
go ahead
@anasali-xv9dt
@anasali-xv9dt 8 жыл бұрын
don't worry, ^_^
@adityarai7674
@adityarai7674 8 жыл бұрын
please make a robot arm with dc motor
@dboer6545
@dboer6545 7 жыл бұрын
Look for UnoJoy
@hayalperest6958
@hayalperest6958 5 жыл бұрын
As bayrakları as
@mehmetsar8097
@mehmetsar8097 4 жыл бұрын
Cakmissin attimsdim videoyu
I Created a (terrible) Video Game Console
9:21
Sebastian Lague
Рет қаралды 2,4 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Using my Real Bike to control my Racing Game
7:19
Jelle Vermandere
Рет қаралды 88 М.
How to integrate Arduino with Unity - hardware work with software
8:39
DIY PC GAMEPAD WITH ARDUINO
14:24
engineerish
Рет қаралды 46 М.
Arduino Game Controller For PC and Android
8:40
Prabeen
Рет қаралды 12 М.
Simple Car Controller in Unity Tutorial
12:38
GameDevChef
Рет қаралды 331 М.
DIY Arduino Robot Arm with Smartphone Control
9:20
How To Mechatronics
Рет қаралды 1,3 МЛН
I built my own computer. by hand.
13:03
jdh
Рет қаралды 1,2 МЛН
7 Skills Every Engineering Student Needs
12:38
Tamer Shaheen
Рет қаралды 121 М.
Make a Flex Sensor for Robotic Hand and Arduino | DIY
6:26
Maker 101
Рет қаралды 335 М.
How to Make Homework Writing Machine at Home - V2
10:41
Superb Tech
Рет қаралды 181 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН