element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Arduino - Windows communication: Using C#
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: SGarciaV
  • Date Created: 10 Nov 2015 10:59 PM Date Created
  • Views 466 views
  • Likes 0 likes
  • Comments 0 comments
  • serial_communications
  • c#
  • leds
  • arduino
Related
Recommended

Arduino - Windows communication: Using C#

SGarciaV
SGarciaV
10 Nov 2015

Hi all!

 

One of my past blog entries described in detail my adventures in designing and building the EPROM Reader. When discussing the Windows software I made a brief mention of a sub project that provided a prototype of the communication subsystem within the EPROM Reader Windows software. The sub project consisted of developing an Arduino sketch and Windows application that allowed two way communication between these two devices. The result was a very simple app whose only propose in life was to receive a certain number of bytes from the Arduino and then place them in a list.image

 

Although simple (and quite frankly boring), the app makes use of various C# techniques to send and receive data through the serial port and to update UI elements from an event. I knew it was worthwhile documenting these and other techniques, especially for my own benefit as I was sure I would forget how I did it. The Arduino sketch also makes use of a state machine. I wanted this added complexity because once the state machine is working, it can be enhanced and expanded to support a multitude of features.image

 

To develop and test the state machine I built a simple circuit with three LEDs and a push button. When the push button got pressed it would advance the state machine to the next state. Once I had that working,as illustrated in the YouTube video I made of it, I then modified the code so that the state machine would advance to the next state based on data received from the Windows app. Once both parts (Windows and Arduino) were working I then modified the state machine again so that I could use it in the EPROM reader project.

 

My Tech Notes on the Windows C# app and Arduino sketch can be found on the following link:

 

https://www.youtube.com/watch?v=N6fsy7-qyqY

 

The video provides a detailed description of the Windows app, and all code, including the Arduino sketch, can be downloaded from a link that I provided in the video's description: The EPROM Reader project itself spawned two smaller projects which in themselves were a fantastic learning experience. This part of the fun of diving into a new project, you never know where it will lead!

 

Regards!

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube