Show Posts
Pages: 1 [2]
16  Using Arduino / Project Guidance / Re: IHM using arduino touchscreen protocol modbus rtu on: May 24, 2013, 02:02:08 pm
hi
I'd like to suggest you some link and video:

1. to understand which library to use for modbus rtu in Arduino (through rs485)
http://www.biemmeitalia.net/blog/android-touchscreen-communicates-with-arduino-using-modbus-rs485/

2. to see an example of HMI https://www.youtube.com/watch?v=hJ6sCwnzXcE
https://www.youtube.com/watch?v=QpmgRP1JGpI

hope it helps
elle
17  Using Arduino / Programming Questions / Re: Modbus communication on: March 23, 2013, 03:17:13 am
hi,
A good starting point might be this one http://t.co/r26H2axo
Even tough the project creates slave Arduino nodes, the modbus library that I use supports both master and slave.
Link to the library provided in the blog post

elle
18  Using Arduino / Networking, Protocols, and Devices / Re: Andruino become a modbus controller? Thanks on: March 22, 2013, 03:44:16 am
hi
Take a look at http://t.co/r26H2axo. It's a simple project in which an Arduino becomes a modbus slave and reply to modbus requests.
In the post, you'll also find the Arduino modbus library to be used.

If you also need a step by step tutorial on how to install a new arduino library, this pointer might be for you http://goo.gl/8nLh9

elle
19  International / Hardware / Re: Arduino con seriale RS 485+logger+gsm on: March 21, 2013, 07:49:22 am
Se ti puo' essere utile, ecco un piccolo tutorial che ti spiega come interfacciare uno slave modbus (via rs485) ad un Arduino

http://goo.gl/iH4Kc


elle
20  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Uno + inverter Aurora on: March 21, 2013, 07:42:16 am
hi,

Does the Aurora inverter comply with modbus protocol?
It that case, instead of managing yourself the replies, requests and crc calculations, you can use an arduino modbus library that do your job.
Take a look at http://t.co/r26H2axo

elle
21  Using Arduino / Programming Questions / Re: Modbus RTU master program on: March 21, 2013, 04:53:11 am
hi,
A good starting point might be this one http://t.co/r26H2axo
Your link is broken, could you please post a new one?
22  Community / Gigs and Collaborations / Re: Cash Paid for programmer to help write code to read ModBus sensors via MAX485 on: March 21, 2013, 04:41:13 am
hi,

I think it is an interesting project. I worked with such Arduino touch screens in the past and even tough it is viable, it is not straightforward to create complex layouts similar to those of the red lion G307K2.

I'd rather suggest you to use some other development boards with Android that use a native modbus library.

Good pointers:
http://t.co/r26H2axo
http://t.co/AyawkFgH
http://t.co/6bMDknXrkp
23  Using Arduino / Programming Questions / Re: Using my own library on: February 11, 2013, 02:35:56 am
hi,
just for reference: http://www.biemmeitalia.net/blog/how-to-install-a-new-arduino-library/

elle
24  Using Arduino / Networking, Protocols, and Devices / Re: Modbus RTU on: February 09, 2013, 04:29:33 pm
Sorry mtoko, there was a minor issue with the website so that the source code was not correctly displayed. Now it should work.
Thank you for point it out!

Remember: the two parts of the code (the one with the setup and the other with loop function) belong to the same Arduino sketch, so they must be together

elle
25  Using Arduino / Networking, Protocols, and Devices / Re: Modbus RTU on: February 09, 2013, 08:58:26 am
right
You'll find the modbus library used in the project at http://code.google.com/p/simple-modbus/.

elle
26  Using Arduino / Networking, Protocols, and Devices / Re: Modbus RTU on: February 09, 2013, 04:12:43 am
Hi
I hope this tutorial http://www.biemmeitalia.net/blog/android-touchscreen-communicates-with-arduino-using-modbus-rs485 might help you.

elle
27  Using Arduino / Programming Questions / Re: Modbus RTU questions... on: February 07, 2013, 06:46:57 am
Hi
Take a look at http://www.biemmeitalia.net/blog/android-touchscreen-communicates-with-arduino-using-modbus-rs485
I hope it helps you

elle
28  Using Arduino / Sensors / Re: Position coordinates not updated, Gps module and Arduino Uno issue on: June 12, 2012, 03:02:43 pm
Docedison, you're right!! Thank you so much!
29  Using Arduino / Sensors / Re: Position coordinates not updated, Gps module and Arduino Uno issue on: June 11, 2012, 10:20:42 am
wow!! Thank you Dubuque for your suggestion, it helped me to fix the later issue. Now the serial monitor receives correct strings like

$GPRMC,150111.000,A,4551.8988,N,01211.8911,E,0.00,263.77,110612,,,D*6B
$GPRMC,150112.000,A,4551.8988,N,01211.8911,E,0.00,263.77,110612,,,D*68
$GPRMC,150113.000,A,4551.8988,N,01211.8911,E,0.00,263.77,110612,,,D*69
$GPRMC,150114.000,A,4551.8988,N,01211.8911,E,0.00,263.77,110612,,,D*6E
$GPRMC,150115.000,A,4551.8988,N,01211.8911,E,0.00,263.77,110612,,,D*6F
$GPRMC,150116.000,A,4551.8988,N,01211.8911,E,0.00,263.77,110612,,,D*6C
$GPRMC,150118.000,A,4551.8988,N,01211.8911,E,0.00,263.77,110612,,,D*62

However, as you can see, when moving far from initial position (at least 10 m/33 ft), the latitude and longitude values remain the same...

Some hints?

Do you think the gps module is broken?

Thanks!

Code:
#include <SoftwareSerial.h>
SoftwareSerial GPS = SoftwareSerial(6,255);
char byteGPS;

void setup()
{
  Serial.begin(9600);
  GPS.begin(4800);
}

void loop()
{
  if (GPS.overflow()){
    Serial.println("overflow");
  }
  byteGPS = GPS.read();

  if (byteGPS == -1) {           // See if the port is empty yet
    delay(50);
  }
  else {
    Serial.print(byteGPS);
  }
}
30  Using Arduino / Sensors / Position coordinates not updated, Gps module and Arduino Uno issue on: June 10, 2012, 09:39:25 am
 Hi
I bought a PMB-688 GPS receiver and an Arduino Uno. I need to get gps location coordinates to serial monitor. I connected yellow gps cable to digital pin 6, red cable to 5v, black to ground.

I used tinyGPS and SoftwareSerial library. Following is the code I used:

Code:

#include <SoftwareSerial.h>
#include "TinyGPS.h"                 // Special version for 1.0

TinyGPS gps;
SoftwareSerial nss(6, 255);            // Yellow wire to pin 6

void setup() {
  Serial.begin(9600);
  nss.begin(4800);
  Serial.println("Reading GPS");
}

void loop() {
  bool newdata = false;
  unsigned long start = millis();
  while (millis() - start < 5000) {  // Update every 5 seconds
    if (feedgps())
      newdata = true;
  }
  if (newdata) {
    gpsdump(gps);
  }
}

// Get and process GPS data
void gpsdump(TinyGPS &gps) {
  float flat, flon;
  unsigned long age;
  gps.f_get_position(&flat, &flon, &age);
  Serial.print(flat, 6); Serial.print(", ");
  Serial.println(flon, 6);
}

// Feed data as it becomes available
bool feedgps() {
  while (nss.available()) {
    if (gps.encode(nss.read()))
      return true;
  }
  return false;
}

When powered on, on serial monitor I saw correct latitute and longitude coordinates, but when I move the gps module, coordinates stay the same. Coordinates will be correctly updated only by power off and subsequently power on Arduino.

Does anybody knows why this could happens? Suggestions are appreciated!

Indeed, I checked the raw strings received without using tinyGPS library, and it turned  out that GPRMC messages frequently overlaps with GPGGA messages, such as:

$GPRMC,143044.000$GPGGA,143045.000,4152.9430,N,01119.2805,E,2,10,0.8,50.0,M,46.8,M,1.8,0000*45

Thanks for your help!
Pages: 1 [2]