Good morning, is it possible to make a model similar to this? however I want to get the weight value of a digital scale and enter this value in Excel. that is, whatever is on the scale display would also be seen in Excel. help me.
i followed exactly what is written side vb, then rated arduino, i made a little similar, we modify in the timer what we expect in reception and it works nikel
Hello! Why can't I send values above 127 ? I send like this SerialPort1.Write(Chr(72)) comes as it should be the number 72. But I need to send the number 205, it should be sent as a character of the Cyrillic letter H, SerialPort1.Write(Chr(205)). But the question mark (?) number 63 comes up. What am I doing wrong?
Hello, Thank you very much, I am a Vietnamese student. Can you provide a clip instructing you to receive signals from the push button to change the picture (picture box) on the VB
@@utehstr Which book is the best that has the most code keywords definitions? The hard part is finding info that is understandable. You must have been studying for many years....
@@robertmccully2792 I can't recommend a book for you because the book that I used for study is gone and I forgot the title of the book. To be honest, I didn't learn much from books, I learned more and gained knowledge from Google search results (search engines) and from asking questions and reading in forums. I learned about computer science for 4 years in college and I continued to study self-taught until now because I still don't feel that I have much knowledge :-) I have seen your youtube channel and it turns out you have good content.
@@utehstr the best book i could find on VB was called Beginning VB 2008 by Thearon Willis, & Brian Newsome. But i stopped learning because everything i made was in a computer... You have crossed into both worlds...that interest me.
izin bertanya, vb sy buat untuk receive serial com dr proteus kok tdk bisa ya? padahal di proteus jika ditampilkan dalam virtual terminal berhasil terkirim akam tetapi jika dikirim ke vb tdk bisa ditampilkan, apakah ada solusi?terimaksih
Selama saya menggunakan Visual Studio, mulai dari VS 2008, VS 2010 dan yang sekarang saya gunakan VS 2015 selalu ada serial port di toolbox. Jika tidak ditemukan, mungkin ada yang kurang pada proses instalasi, coba kamu tanyakan masalah ini di forum2 VB Net, mungkin disana banyak orang yang lebih berpengalaman yang bisa membatu kamu.
Excellent demonstration. I had to turn down the music though. Would it be possible to add the text file to the links? I think that would be about the only thing to improve on this video.
I don't understand what you mean by "Socket" in your question, but if you want to see some video projects about VB and Arduino you can take a look at this playlist: th-cam.com/video/Sy2vjWO0ydM/w-d-xo.html
hello sir, i am new to visual programming, due to covid still we are in Lockdown, so i have been trying to do so hobby, i will send from arduino uno as , 1 or 2 or 3 or 4, now i want to visible picturebox1 if i send 1, if 2 then visible 2nd picturebox, if 3 then 3rd picturebox, and if i send 4 then picturebox4 is visible = true else visible = false for all
en francais, j ai suivi exactement ce qu il y a ecrit coté vb, ensuite coté arduino, j ai fais un peu pareil , on modifie dans le timer ce qu on attends en reception et ca marche nikel
Check this : - Make sure your Arduino is properly connected to your computer. - Check the Device Manager whether COM Arduino appears there. - Make sure you have installed the Arduino COM Driver.
For me it doesn't work. I click on the scan button, program find the Arduino. But when i click on the Connect button one led turns on for half second and nothing else. If I use the Arduino serial monitor it gives me the values. Any idea?
@@utehstr I followed the video tutorial Im connected to my PORT but when I click CONNECT_BTN it doesn't work. label.text wonts happen. I used LDR sensor.
@@utehstr here's my code '//' means comment line Imports System.IO.Ports Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Me.CenterToParent() connbtn.Enabled = False connbtn.BringToFront() dcbtn.Enabled = False dcbtn.SendToBack() cmbbaud.SelectedItem = "9600" End Sub Private Sub Connbtn_Click(sender As Object, e As EventArgs) Handles connbtn.Click //connect btn connbtn.Enabled = False connbtn.SendToBack() SerialPort1.BaudRate = cmbbaud.SelectedItem SerialPort1.PortName = cmbport.SelectedItem SerialPort1.Open() Timer3.Start() dcbtn.Enabled = True dcbtn.BringToFront() End Sub Private Sub Dcbtn_Click(sender As Object, e As EventArgs) Handles dcbtn.Click //disconnect btn dcbtn.Enabled = False dcbtn.SendToBack() Timer3.Stop() SerialPort1.Close() connbtn.Enabled = True connbtn.BringToFront() End Sub Private Sub Scanbtn_Click(sender As Object, e As EventArgs) Handles scanbtn.Click //scan btn cmbport.Items.Clear() Dim myport As Array Dim i As Integer myport = IO.Ports.SerialPort.GetPortNames() cmbport.Items.AddRange(myport) i = cmbport.Items.Count i = i - i Try cmbport.SelectedIndex = i Catch ex As Exception Dim result As DialogResult result = MessageBox.Show("com port not detected", "Warning !!!", MessageBoxButtons.OK) cmbport.Text = "" cmbport.Items.Clear() Call Form1_Load(Me, e) End Try connbtn.Enabled = True connbtn.BringToFront() cmbport.DroppedDown = True End Sub Private Sub Timer3_Tick(sender As Object, e As EventArgs) Handles Timer3.Tick //timer ticking Try Dim i As Single = SerialPort1.ReadExisting ldrval.Text = i.ToString Catch ex As Exception 'MessageBox.Show("la") End Try End Sub End Class here's my arduino code #define LDRpin A0 // pin where we connect LDR and resistor int LDRValue = 0; // result of reading the analog pin void setup() { Serial.begin(9600); // sets serial port for communication } void loop() { LDRValue = analogRead(LDRpin);// read the value from the LDR if (LDRValue < 2){ Serial.println("Recording"); delay(1000); while(1){ //I use while(1) for delay's only delay(1000); loop(); } } else{ Serial.println(LDRValue); // print the value to the serial port delay(1000); // wait a little loop(); }
kalau di vb nya nerima data berupa suara bisa ga ya? Misalnya di arduino punya output "melati" nah di vb saat menerima data tersebut berupa suara. bisa ga mas?
halo mas, kalau ingin kirim(send) 1 byte dari pc kemudian menerima 1 byte(receive) dari arduino , perintahnya apa yah mas ? dan di letakkan di mana ? makasih
Halo juga Terlalu panjang untuk dijelaskan dikolom komentar. Ini saya ada nemu di google, Lihat disini : www.ismaillowkey.net/2015/03/interfacing-visual-basic-2010-and.html
@@utehstr i was able to reproduce it, however , i want to store a list of the serial data in a list box... but when I do, the each data are too far from each other in the list box instead on being on top of each other 🤔🤔
@@utehstr like the first data is in line 1 (line here means the position) of the list box, then after 1 second the next data is placed in line 15 instead of being placed just beneath the first data
Hi sahabat, saya mahu bertanya, kenapa keluar error bila saya click button connect and then dia keluar error pada serialport1. Open(). Dy keluar box message menyatakan exception thrown: 'the port' COM5' does not exist. '. Padahal, saya check dekat device manager COM 5 itu udah connect. Boleh bantu?
@@utehstr HEllo Dear! CmbBaud.SelectedItem = "9600" i have one question about this line. in window we have many baudrate options but in code this is fixed. why is this so? regards,
@@nazarhussain2757 I use baudrate 9600 as the default baudrate just as an example and also the baudrate is enough for this video project. You can use another baudrate as needed.
@@nazarhussain2757 If you want to change the default baud rate you have to change the code, but you can also change the baudrate when the application is started (changed manually).
Proyek ini saya upload sekitar setahun yang lalu, masih awal2 membangun channel ini, jadi masih sangat banyak kekurangan. Harap maklum. Nanti kalau sempat akan saya perbarui. Terima kasih atas sarannya :-)
Thank you so much. This is a perfect-simple video which i have never seen before!
You are welcome :-)
A bit SLOW, but finally worthed the time.
Quite Useful Demo!! Thanks @Uteh Str.
works fine and easy to understand...
Thank you :-)
I am happy if the video I made is useful for you :-)
Thankyou for the tutorial, it works fine
You're welcome :-)
@@utehstr Mau tanya kenapa di visbas saya ga ada pilihan serial port ya di toolbox? Sudah pilih windows form app utk vb. Any solution?
Good morning, is it possible to make a model similar to this? however I want to get the weight value of a digital scale and enter this value in Excel. that is, whatever is on the scale display would also be seen in Excel. help me.
Excuse me for asking but which workload are you using?
i followed exactly what is written side vb, then rated arduino, i made a little similar, we modify in the timer what we expect in reception and it works nikel
Good job :-)
System.InvalidOperationException: ''PortName' cannot be set while the port is open.', can you help me?
Thanks a lot, it's very useful. I'll try it according to your tutorial.
You are welcome.
good luck :-)
Hello! Why can't I send values above 127 ? I send like this SerialPort1.Write(Chr(72)) comes as it should be the number 72. But I need to send the number 205, it should be sent as a character of the Cyrillic letter H, SerialPort1.Write(Chr(205)). But the question mark (?) number 63 comes up. What am I doing wrong?
You probably declared the char as a signed char (-127 to 127). Need to declare as unsigned char (0 - 255).
Thanks dude, u helped me a lot, just suscribed
You are welcome :-)
Thank you for subscribing
Hello, Thank you very much, I am a Vietnamese student.
Can you provide a clip instructing you to receive signals from the push button to change the picture (picture box) on the VB
hi bro.
@@HuongHoang-ez9si bạn giúp mình được không bạn
Your good! Where did you learn all this? Is there a book on serial connections?
Thank you :-)
Some I learned when I was in college and some I learned from the internet (with google / youtube and forums) and some from books.
@@utehstr Which book is the best that has the most code keywords definitions? The hard part is finding info that is understandable. You must have been studying for many years....
@@robertmccully2792 I can't recommend a book for you because the book that I used for study is gone and I forgot the title of the book. To be honest, I didn't learn much from books, I learned more and gained knowledge from Google search results (search engines) and from asking questions and reading in forums.
I learned about computer science for 4 years in college and I continued to study self-taught until now because I still don't feel that I have much knowledge :-)
I have seen your youtube channel and it turns out you have good content.
@@utehstr the best book i could find on VB was called Beginning VB 2008 by Thearon Willis, & Brian Newsome. But i stopped learning because everything i made was in a computer... You have crossed into both worlds...that interest me.
@@robertmccully2792 If you are interested, try to start making it :-)
izin bertanya, vb sy buat untuk receive serial com dr proteus kok tdk bisa ya? padahal di proteus jika ditampilkan dalam virtual terminal berhasil terkirim akam tetapi jika dikirim ke vb tdk bisa ditampilkan, apakah ada solusi?terimaksih
Mau tanya kenapa di visbas saya ga ada pilihan serial port ya di toolbox? Sudah pilih windows form app utk vb. Any solution?
nothing solution
Selama saya menggunakan Visual Studio, mulai dari VS 2008, VS 2010 dan yang sekarang saya gunakan VS 2015 selalu ada serial port di toolbox. Jika tidak ditemukan, mungkin ada yang kurang pada proses instalasi, coba kamu tanyakan masalah ini di forum2 VB Net, mungkin disana banyak orang yang lebih berpengalaman yang bisa membatu kamu.
@@mirghulmad wkakakakak
@@letflow545 hi netizen
Wkwkwk gampang ternyata lu salah menu, Pilih create project Windows Form Apss yang ada tulisan Net Frameworknya
Thank You Uteh I also wish you Gods blessings
You're welcome :-)
Excellent demonstration. I had to turn down the music though.
Would it be possible to add the text file to the links? I think that would be about the only thing to improve on this video.
What text file do you mean ?
The txt file you copied your code from.
I could type along fine, but a txt file to copy from is just a bit easier :)
Hello Uteh,
Do you have some video to learn more about Socket communication between VB.net and Arduino? Thanks
I don't understand what you mean by "Socket" in your question, but if you want to see some video projects about VB and Arduino you can take a look at this playlist: th-cam.com/video/Sy2vjWO0ydM/w-d-xo.html
Got all the way to the end, but it wont display the potentiometer value for some reason
I love your video! It works for me. Thank you so much, Sir!
You're welcome :-)
hello sir, i am new to visual programming, due to covid still we are in Lockdown, so i have been trying to do so hobby, i will send from arduino uno as , 1 or 2 or 3 or 4, now i want to visible picturebox1 if i send 1, if 2 then visible 2nd picturebox, if 3 then 3rd picturebox, and if i send 4 then picturebox4 is visible = true else visible = false for all
Thank you, for your tutorials
You're welcome :-)
en francais, j ai suivi exactement ce qu il y a ecrit coté vb, ensuite coté arduino, j ai fais un peu pareil , on modifie dans le timer ce qu on attends en reception et ca marche nikel
Great video! Could you please share a link to the code?
Instead of potential Meter can we use use others sensors? Reply plz
Yes, of course you can use other sensors.
Sir, i have followed your video. But why in my laptop cannot show the COM?
Check this :
- Make sure your Arduino is properly connected to your computer.
- Check the Device Manager whether COM Arduino appears there.
- Make sure you have installed the Arduino COM Driver.
How can I get more than one sensor reading?
Look here :
th-cam.com/video/Fytsv9YOcuE/w-d-xo.html
th-cam.com/video/EQpflovuJgw/w-d-xo.html
thank you very much! i did it but this project only display the number Not words.Could you help me!!!
What does it mean to only display numbers ?
Thank you for such a useful video. But what are those cables? Can you tell me what they do?
Which cable do you mean?
@@utehstr in 15:39 the cables that aren't connected to the Arduino
@@ezgieftekin4495 it's my homemade cable. you just follow the scheme like at 14:59
@@utehstr Thank you for your time.
min saya harus download yang mana ya? yang free community atau crack profesional?
For me it doesn't work. I click on the scan button, program find the Arduino. But when i click on the Connect button one led turns on for half second and nothing else. If I use the Arduino serial monitor it gives me the values. Any idea?
Are you sure you have followed the video ?
@@utehstr I followed the video tutorial Im connected to my PORT but when I click CONNECT_BTN it doesn't work. label.text wonts happen. I used LDR sensor.
@@frankjpsc6863 Send your code to this email channel.
@@utehstr here's my code '//' means comment line
Imports System.IO.Ports
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.CenterToParent()
connbtn.Enabled = False
connbtn.BringToFront()
dcbtn.Enabled = False
dcbtn.SendToBack()
cmbbaud.SelectedItem = "9600"
End Sub
Private Sub Connbtn_Click(sender As Object, e As EventArgs) Handles connbtn.Click
//connect btn
connbtn.Enabled = False
connbtn.SendToBack()
SerialPort1.BaudRate = cmbbaud.SelectedItem
SerialPort1.PortName = cmbport.SelectedItem
SerialPort1.Open()
Timer3.Start()
dcbtn.Enabled = True
dcbtn.BringToFront()
End Sub
Private Sub Dcbtn_Click(sender As Object, e As EventArgs) Handles dcbtn.Click
//disconnect btn
dcbtn.Enabled = False
dcbtn.SendToBack()
Timer3.Stop()
SerialPort1.Close()
connbtn.Enabled = True
connbtn.BringToFront()
End Sub
Private Sub Scanbtn_Click(sender As Object, e As EventArgs) Handles scanbtn.Click
//scan btn
cmbport.Items.Clear()
Dim myport As Array
Dim i As Integer
myport = IO.Ports.SerialPort.GetPortNames()
cmbport.Items.AddRange(myport)
i = cmbport.Items.Count
i = i - i
Try
cmbport.SelectedIndex = i
Catch ex As Exception
Dim result As DialogResult
result = MessageBox.Show("com port not detected", "Warning !!!", MessageBoxButtons.OK)
cmbport.Text = ""
cmbport.Items.Clear()
Call Form1_Load(Me, e)
End Try
connbtn.Enabled = True
connbtn.BringToFront()
cmbport.DroppedDown = True
End Sub
Private Sub Timer3_Tick(sender As Object, e As EventArgs) Handles Timer3.Tick
//timer ticking
Try
Dim i As Single = SerialPort1.ReadExisting
ldrval.Text = i.ToString
Catch ex As Exception
'MessageBox.Show("la")
End Try
End Sub
End Class
here's my arduino code
#define LDRpin A0 // pin where we connect LDR and resistor
int LDRValue = 0; // result of reading the analog pin
void setup() {
Serial.begin(9600); // sets serial port for communication
}
void loop() {
LDRValue = analogRead(LDRpin);// read the value from the LDR
if (LDRValue < 2){
Serial.println("Recording");
delay(1000);
while(1){
//I use while(1) for delay's only
delay(1000);
loop();
}
}
else{
Serial.println(LDRValue); // print the value to the serial port
delay(1000); // wait a little
loop();
}
}
@@utehstr hmm sorry for inconvenience, It works now cause I changed my arduino codes. sorry also for my bad English. Thank you so much!
Bang ada contoh menghubungkan vb net lewat bluetooth gak? Terima kasih sebelumnua
Thank you for the video. Is there a way to send the data OTA?
You are welcome :-)
Until now I have never tried using OTA for this application.
can you send me the code Sir?
kalau di vb nya nerima data berupa suara bisa ga ya?
Misalnya di arduino punya output "melati" nah di vb saat menerima data tersebut berupa suara. bisa ga mas?
Secara teknis mungkin bisa-bisa saja, tapi saya belum pernah coba. Mungkin kamu bisa cari referensinya dari sumber / tempat lain :-)
it gives me an errror when i type Me.CenterToParent()
what's the error message?
Same issue here
halo mas, kalau ingin kirim(send) 1 byte dari pc kemudian menerima 1 byte(receive) dari arduino , perintahnya apa yah mas ? dan di letakkan di mana ? makasih
Halo juga
Terlalu panjang untuk dijelaskan dikolom komentar. Ini saya ada nemu di google, Lihat disini : www.ismaillowkey.net/2015/03/interfacing-visual-basic-2010-and.html
Wow.. Fantastic..Makasih Mas..
@@djokopudyanto1979 Sama-sama :-)
Thanks brother! You are awesome.
You are welcome :-)
it is showing error about access denied to port
hi sir can you share the code?
where can I get the code that you have copied from your notepad?
I forgot where I saved the code and I haven't had time to reproduce it, you can type the code because the code isn't too much either.
@@utehstr i was able to reproduce it, however , i want to store a list of the serial data in a list box... but when I do, the each data are too far from each other in the list box instead on being on top of each other 🤔🤔
@@utehstr thankss by the way! Great tutorial! but I had to disable the music in the tutorial as it distracts me huhu
@@adriandanielpantano9533 What does "the data are too far from each other in the list box", can you explain in more detail.
@@utehstr like the first data is in line 1 (line here means the position) of the list box, then after 1 second the next data is placed in line 15 instead of being placed just beneath the first data
What's the value of the potentiometer?
Serial.println(val / 4); //0 -> 255
Mas kalau pake sensor AD8232 dengan menggunakan source code di video ini bisa nggak ??
Bisa, tentu dengan beberapa modifikasi kode.
It is possible to read serial data to arduino with rfid instead of potentiometer ?
Do you get any code?
Boleh ajarin gk kak?
Mau belajar buat aplikasi di laptop yg bisa konek untuk mattiin peralatan elektronik 🙏🙏
Thx, it's a good video. Do you have a link to the code?
hi, sir, please give me te best link for download visual studio, pleaes
For now, as far as I know it is the best link and is the official link from Microsoft Visual Studio.
Hi sahabat, saya mahu bertanya, kenapa keluar error bila saya click button connect and then dia keluar error pada serialport1. Open(). Dy keluar box message menyatakan exception thrown: 'the port' COM5' does not exist. '. Padahal, saya check dekat device manager COM 5 itu udah connect. Boleh bantu?
Hai
Jika menggunakan Serial Monitor pada Arduino IDE apakah nilai sensornya tampil ?
@@utehstr terima kasih mas, saya udah dapat resultnya. Saya try again, and then resultnya display. Bezanya, saya tak pakai potentialmeter, saya pakai resistor biasa.
@@muhammadhaniskhairudin5036 Alhamdulillah kalau sudah berhasil
Kerja bagus 👍
@@utehstr mantap
@@utehstr Boleh tak saya nak contact dengan awak?
Many thanks to you , bro .
You're welcome🙂.
Cool!
Thank you :-)
very comprehensive tutorial. great effort. can it work for STM32 too???
Thank you...
I have never tried this application with STM32, but if it still uses serial communication, this should work.
@@utehstr HEllo Dear!
CmbBaud.SelectedItem = "9600"
i have one question about this line. in window we have many baudrate options but in code this is fixed. why is this so?
regards,
@@nazarhussain2757 I use baudrate 9600 as the default baudrate just as an example and also the baudrate is enough for this video project. You can use another baudrate as needed.
So I have to change the Baudrate in the code manually or can change it from GUI Baud port and it will change in the code too???
Regards,
@@nazarhussain2757 If you want to change the default baud rate you have to change the code, but you can also change the baudrate when the application is started (changed manually).
Hi iwant the c# part the real time graph.
C# is currently unavailable.
What are those references
Mas error: Additional information :Acces to the port 'COM3' is denied
Gmn mas ? Mohon bantuannya
Makasih
Serial terminal di arduino IDE kamu kebuka atau ketutup ?
Mas udah bisa pak Monitor dr Arduino tak tutup, tp sekarang errornya ngga muncul datanya, cuma tulisan potensiimeter aja
@@FTID-mr5fh pastikan baudrate pada kode arduino bernilai sama dengan baudrate aplikasi vs-nya.
Udah sama mas, tetep blom bisa
Boleh minta nomer wa nya mas
Makasih mas
its very good.... please share me project pls, because your rar file is not extracting.
i wanto to make like this, connect to high potential meter rs232 communication. But it should store to database..
Look here for vb net with mysql database: th-cam.com/video/ajd2Y1AZqeE/w-d-xo.html
@@utehstr makasi bro, orang sumut nya rupanya hehe..
@@mickytambunan3335 hahaha
sama-sama bang :D
You can send me code Visual studio now ? Thanks you
The music is painful though haahah what's the music ???
The songs are in the description
Bang tolong dong untuk program di vb nya di kasih penjelasan jg kayak di program arduino biar tau maksut programnya itu masih tahap belajar bang hehe
Proyek ini saya upload sekitar setahun yang lalu, masih awal2 membangun channel ini, jadi masih sangat banyak kekurangan. Harap maklum. Nanti kalau sempat akan saya perbarui. Terima kasih atas sarannya :-)
Uteh Str di tunggu bang pembaharuannya 😁
@@Jalan_Bareng_Bocil Ok
Jangan lupa Subscribenya ya, biar tambah semangat :-)
Cool .Thanks
You are welcome :-)
put the link to the code sir
bang riquest cara bikin module serialport visual studio buat dua form
Ok nanti akan saya buat :-)
@@utehstr makasih banyak baang, saya tunggu
@@nalendro_agung Sama-sama. Tapi mungkin tidak dalam waktu dekat, karena saya masih ngerjain proyek yang lain.
not all VB
Missing code Line
Super!!!
Thank you :-)
Kalu bacanya readLine gimana mas
Ganti saja ReadExisting dengan ReadLine
nice it help me
thank / merci
You are welcome :-)
mantap bro
Makasih bro :-)
thanks
You are welcome
No code....?
I lost the file, so I can't share it. The code is not too much, so for a while try typing manually.
FINE!!!!!!!!
How can I read data from 2 or 3 different potentiometers???
To do that, you can use "String.Split()".