Click here to Skip to main content
15,886,823 members

Ardunio code for RS485 board

Dazbut asked:

Open original thread
Hi this might be a simple one for someone. I've an Arduino Mega and a MAX485 Module RS-485 TTL to RS485 Converter Module. I basically need the code to set it up with a baud rate of 2800 and then the line of code to instruct it to send a hexidecimal code (the Pelco D protocol) when a button is activated. Currently we have a simple system where the Arduino is activating relays upon the button being pressed. We need to add the command to send the hexidecmal code (the code is FF 01 00 07 00 01 ) as well. I've no idea, anyone like to suggest?

What I have tried:

Nothing yet, it's taken us this long just to get the hexidecimal code..
Tags: Arduino

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900