Arduino Board with Multiple Function

Hello, i’m new with Arduino.
Currently i’m using Arduino Uno board with RS 232 and Ethernet Shield.
But since there is multiple function that need to be run at the same time, there is error said that ‘Cannot compile at your Arduino Board.’

If anyone has suggestion on what Arduino board that can suits the purpose for multiple function or better idea, kindly share your gist on this.

Thank you.

that message (probably not exactly that one) is likely due to something not related to having multiple things to do “at the same time”.

  • Post the code with code tags
  • Describe what hardware you use and how things are wired
  • Describe how you compile (IDE, port, board, …)

Thanks. i will create new post with ur suggestion.

not a new post, keep the discussion here

I’m trying to use the UHF Rfid integrate with Ethernet Shield and RS232.
The purpose of this project is I would like to track the asset movement.

The error is, RFID function cannot print out the RFID tag number.

Below is my coding:

#include <ModbusMaster232.h>
#include <ModbusSlave232.h>


/* Arduino Code which sends data to google spreadsheet */

#include<SPI.h>
#include <SoftwareSerial.h>
#include <Ethernet.h>
#define SS_PIN 4 //FOR RFID SS PIN BECASUSE WE ARE USING BOTH ETHERNET SHIELD AND RS-522
#define RST_PIN 9
#define No_Of_Card 3


byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
char server[] = "api.pushingbox.com/pushingbox?devid=vE474F9B73B19E59";   //YOUR SERVER
IPAddress ip(10, 30, 20,95);
EthernetClient client;     


SoftwareSerial mySerial (5,6);
unsigned char incomingByte;

// the setup function runs once when you press reset or power the board
void ethernet(){
   
   if (Ethernet.begin(mac) == 0) {
      Serial.println("Failed to configure Ethernet using DHCP");
     Ethernet.begin(mac, ip);
    }
    delay(1000);
    Serial.println("connecting...");
 }

void sendIdentifyCmd ()
{
  mySerial.write (0x7c);    
  mySerial.write (0xff);
  mySerial.write (0xff);  
  mySerial.write (0x01);                  
  mySerial.write (0x08);                  
  mySerial.write (0x7d);              
#ifdef DEBUG
  Serial.print (0x7c);
  Serial.print (0xff);
  Serial.print (0xff);
  Serial.print (0x01);
  Serial.print (0x08);
  Serial.print (0x7d);
  Serial.println ();
#endif
}

void setup ()
{
 Serial.begin (9600);
 mySerial.begin (9600);
 Serial.println ("begin initial Serial!\n");
}

void loop ()
{
  sendIdentifyCmd ();
  delay (2);
  while(mySerial.available () > 0)
  {
      incomingByte=mySerial.read ();
      Serial.print (incomingByte,HEX);
      Serial.print (' ');
  }
  Serial.println ();
  delay (1000);
}

 void Sending_To_spreadsheet()   //CONNECTING WITH MYSQL
 {
   if (client.connect(server, 80)) {
    Serial.println("connected");
    // Make a HTTP request:
    client.print("GET /pushingbox?devid=vE474F9B73B19E59&machine_location=");     //YOUR URL
//    if(j!=No_Of_Card)
  //  {
  //    client.print('1');
//      Serial.print('1');
    }
    else
    {
      client.print('0');
    }
    
    client.print("&Machine_ID=");
    for(int s=0;s<4;s++)
                  //{
                    //client.print(rfid.uid.uidByte[s]);
                                  
                //  }
    client.print(" ");      //SPACE BEFORE HTTP/1.1
    client.print("HTTP/1.1");
    client.println();
    client.println("Host: api.pushingbox.com");
    client.println("Connection: close");
    client.println();
  //} //else {
    // if you didn't get a connection to the server:
   // Serial.println("connection failed");
  //}
 }

please edit your post, select the code part and press the </> icon in the tool bar to mark it as code. It’s unreadable as it stands. (also make sure you indented the code in the IDE before copying, that’s done by pressing ctrlT on a PC or cmdT on a Mac)

also copy & paste here what’s the compiler’s error

Done update as per said.
Thanks for guiding me as i’m new in this forum.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.