Cooking Hacks Forum
https://www.cooking-hacks.com/forum/

RS-232 Module Tutorial for Arduino
https://www.cooking-hacks.com/forum/viewtopic.php?f=20&t=10374
Page 1 of 1

Author:  jelm1995 [ Wed Jul 12, 2017 3:43 pm ]
Post subject:  RS-232 Module Tutorial for Arduino

I have purchased the RS-232 module with the multi-protocol radio shield, uploaded the supplied code by the tutorial provided on cooking hacks website to my arduino to test the hardware and had no response.

Please help, is there a problem with my hardware or software. I also downloaded all the ArduPi libraries and using them.

The code I uploaded:

/*
* RS-232 Module
*
* Copyright (C) Libelium Comunicaciones Distribuidas S.L.
* http://www.libelium.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* a
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see http://www.gnu.org/licenses/.
*
* Version: 0.2
* Design: David Gascon
* Implementation: Ahmad Saad, Rubén Martín
*/

#include <Wire.h>

// Cooking API libraries
#include <arduinoUART.h>
#include <arduinoUtils.h>

void setup() {

// Configure the multiplexer select pin
pinMode(5, OUTPUT);

Serial.begin(9600);
delay(100);

// Hello message
Serial.println("Hello this is RS-232 communication send example!");
delay(100);

}

void loop() {
// Using the SOCKET0
Utils.setONSocket0();
Utils.setMUXSocket0();

// Reading the analog input 1
int analog0 = analogRead(A0);
// Temperature formula TMP36
float temperature = 100.0 * (analog0 * 5.0) / 1023 - 50;


// Send data through RS-232 line
Serial.print("Temperature from TMP36 : ");
Serial.print(temperature);
Serial.println(" C");

delay(1000);
}

Author:  libelium-dev [ Thu Jul 13, 2017 7:04 am ]
Post subject:  Re: RS-232 Module Tutorial for Arduino

Hi jelm1995,

Can you give us more information? Which board are you using? Arduino UNO, raspberry...

Can you upload some photos to see how do you connect your hardware?

Thanks.

regards

Author:  jelm1995 [ Mon Jul 17, 2017 3:52 pm ]
Post subject:  Re: RS-232 Module Tutorial for Arduino

Thank you for taking the time to respond, I'm using an Arduino UNO and trying to achieve communications to my ADS1115 and MAX31856 with a thermocouple type K attached. Using RS232 to display values such as temperature and pressure live to my com port.

For now I'm just using TMP36 to test the hardware and using your example code and haven't had any luck with that.

Set up:

Image

Hardware:

ADS1115
https://learn.adafruit.com/adafruit-4-channel-adc-breakouts/overview

MAX31856
https://learn.adafruit.com/adafruit-max31856-thermocouple-amplifier/overview

Thank you,

jelm1995

Author:  libelium-dev [ Wed Jul 19, 2017 7:03 am ]
Post subject:  Re: RS-232 Module Tutorial for Arduino

Hi jelm1995,

Can you show us real photos of your hardware? We want to see how do you connect all.

Have you tried the other socket of the board? Review the jumpers and the speed of the port.

Thanks.

Regards

Author:  jelm1995 [ Thu Jul 20, 2017 9:56 pm ]
Post subject:  Re: RS-232 Module Tutorial for Arduino

Unfortunately due to my workspace policies I'm not allowed to take picture nor upload pictures into forums. Hope you can understand.

How can I test if my RS-232 module and Multiprotocol Radio Shield are not faulty.

Is it possible to connect MAX31856 and ADS1115 into the RS-232 module and multiportocol Radio shield for comm port communication to display my temperature and pressure values?

Thank you,

jelm1995

Author:  libelium-dev [ Fri Jul 21, 2017 7:15 am ]
Post subject:  Re: RS-232 Module Tutorial for Arduino

Hi jelm1995,

jelm1995 wrote:
Unfortunately due to my workspace policies I'm not allowed to take picture nor upload pictures into forums. Hope you can understand.


Without picture sis not easy to us to know if you hardware is connected correctly or not. See the configuration of your hardware is very important to us.

jelm1995 wrote:
How can I test if my RS-232 module and Multiprotocol Radio Shield are not faulty.

All the examples of the library and the tutorial can help you to know if the RS-232 module and Multiprotocol Radio Shield are not faulty.

Regards

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/