Git Product home page Git Product logo

rs485-arduino-library's Introduction

RS485-Arduino-Library

Arduino Library for use with RS485 devices. It creates a software-serial on pins D2(RX) and D3(TX) that is connected to a RS485 chip.

Pin D4 is enabled when sending data over the data bus.

I used SN75176BP chip to transmit the data over CAT5 cable and Arduino UNO.

How to install it:

Down load the library from GitHub : https://github.com/Protoneer/RS485-Arduino-Library/archive/master.zip

Unzip the library and copy the main folder into the "Libraries" folder in the folder you installed your Arduino software. Eg. C:\arduino-1.0.3\libraries\

Rename the folder to "RS485" (This will stop the Arduino IDE from complaining about the long folder name)

Open up the Arduino IDE.

Click on the following menu : File -> Examples -> RS485 (or what ever you renamed the folder to) -> Sender or Receiver

Upload the sketch to your Arduino board.

rs485-arduino-library's People

Contributors

protoneer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rs485-arduino-library's Issues

RX_PIN, TX_PIN and ENABLE_PIN must be defined first?

Hi, I have downloaded this library and did not found theese definitions.
Should I do it by myself?

define RX_PIN 2;

define TX_PIN 3;

define ENABLE_PIN 4;

And if so, may I change to any pin of arduino?
Thanks in advance.

Message format explain

I try the example it works, but I don´t understand the message format, I know that STX is the fisrt but then... please help to figure it out.

compile error on MEGA using standard SEND example

compile error on MEGA using standard SEND example:

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr6/crtm2560.o: In function __vector_default': (.vectors+0x90): relocation truncated to fit: R_AVR_13_PCREL against symbol__vector_36' defined in .text.__vector_36 section in core.a(HardwareSerial.cpp.o)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.