1 Replies - 12271 Views - Last Post: 25 March 2017 - 12:59 AM

#1 ArthurFonz   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 24-March 17

Raspberry Pi control arduino atmega

Posted 24 March 2017 - 05:08 PM

Hello, I thought I would share a project I have been working on for work. I'm using a raspberry pi to send commands to an arduino atmega 2560 which either turns on/off relays or takes an analog reading.

The raspberry pi software is written in C++ using QT Creator. It starts through user input then sends single to turn on X relay and sends command to read an analog channel at set increments. When designated time is finished it send command to turn on x relay then kills the timer.

The arduino software is very basic. simple case statement and either reads or turns on/off relay based on command.

DISCLAIMER: Both pieces of code are poorly written. I needed this working immediately so I hacked it to heck and back. I will be cleaning it up soon, but thought this may help somebody wanting to communicate with an arduino using c++ on the raspberry pi.

GITHUB: https://github.com/a...-Stress-System/


Thanks for reading, hope this helps someone!

Is This A Good Question/Topic? 0
  • +

Replies To: Raspberry Pi control arduino atmega

#2 andrewsw   User is offline

  • Unprocessable Entity
  • member icon

Reputation: 6578
  • View blog
  • Posts: 26,724
  • Joined: 12-December 12

Re: Raspberry Pi control arduino atmega

Posted 25 March 2017 - 12:59 AM

Moved to Share Your Project.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1