Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Simple arduino DC motor,

How do I make it so in the serial monitor I can type start or stop and have a dc motor spin or not spin lol, I see 200 million tutorials everywhere that are like hook up IC's and diode's and everything in existence just to have a DC motor turn on and off none that are like type start in serial to tell the arduino to turn that on.. nothing like that for some reason.
#200,000,001 tutorial:

http://www.letsarduino.com/project-22-ar...unication/
but that has a separate C# program.. do I not need to use that?
If you are talking about communicating through serial ports, I made a tutorial here on HF quite a while ago.

https://hackforums.net/showthread.php?tid=2051683

Is this what you are looking for?

Μouse Wrote:  That's wrong. I don't have proof for that, it should just be common knowledge that it's wrong.

Well, I mean, the only lines of real importance that I see in the c# are the following:
Code
serialPort1.Open();
//and
byte[] b = BitConverter.GetBytes(PWM);
                serialPort1.Write(b, 0, 4);
As far as I can tell, most of the rest is for the GUI, but I've never really messed with Arduinos, so eh.

riperino animefanerino
(Sep 12, 2016 04:11 PM){Nexus} Wrote:  If the FBI come knocking I'm gonna spew information out my ass about Aeon.

They'd have to tell me to stop giving them information.

YES Peefer, that is what I mean't lol I had the rest down just didn't know how to be like hey light1 via serial to have it work
(Jun 23, 2016 05:00 AM)Coffee is love Wrote:  YES Peefer, that is what I mean't lol I had the rest down just didn't know how to be like hey light1 via serial to have it work

Glad to help!

Μouse Wrote:  That's wrong. I don't have proof for that, it should just be common knowledge that it's wrong.



Possibly Related Threads...
Thread / Author Replies Views Last Post
[The Brotherhood] by itcorpJul 30, 2026 01:52 AM 4 181 Jul 30, 2026 01:52 AM
Last Post: HerrWinston
[Java] by Nemo2478Oct 28, 2019 01:42 AM 0 176 Oct 28, 2019 01:42 AM
Last Post: Nemo2478
[Java] by Drain.Feb 1, 2018 03:05 PM 2 171 Feb 1, 2018 03:05 PM
Last Post: Get Hit