Skip to content

python client for arduino server running simple state machine and protocol.

License

Notifications You must be signed in to change notification settings

graetz23/coolPythonSerialStateMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cool Python Serial State Machine

Introduction

Client and Server implementation for sending to ARDUINO & PYTHON (using both class PSSM_CLient) and receiving from ARDUINO (using cool Arduino Serial State Machine commands, states, and data via serial console.

Usage

  1. Flash the project: Arduino Serial State Temperature Cable Probe. If you do not have some Negative Temperature Coefficient (NTC) cable probes, do not worry, open analog inputs are always drifting will deliever true random data.
  2. Plug arduino to USB port and be sure by: ls /dev that there is /dev/ttyACM0 listed,
  3. Clone or download this project, and type: python run.display
  4. To kill all threads, take a new terminal and: ps ux | grep python and kill -9

Remarks

This project is written in python 2.7

I have written an arduino library as the mirrow project: cool Arduino Serial State Machine, where arduino is acting as a server for driving or / and processing sensor / actor / .. data and sending it.

Everything was coded using:

have fun :-)

ChangeLog

version 20200404

  • Rewritten arduino's method based style to some python's object-oritend style:
    • PSSM_Client works fine to comand and request arduino,
      • I used Arduino Serial State Temp Cable Probe for running this example.
      • reading arduino's answer in a seperate speedy thread,
      • saving answers in style of memento; keeping last always available
    • PSSM_Server, which is the equivalent to cool Arduino Serial State Machine:
      • Not debugged yet, while have to setup a dummy serial console, etc.
      • ** no necessary; to follow ..**

version 20200401

About

python client for arduino server running simple state machine and protocol.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages