Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

How to build serial communication with Intel Galileo ?

PENGSHEN_Y_
Beginner
907 Views

char number;
void setup()
{
Serial.begin(9600);
pinMode(13,OUTPUT);
 
}
void loop()
{
if(Serial.available())
{
number = Serial.read();
Serial.println(number);
if(number=='A')
{digitalWrite(13,HIGH);}
if(number=='B')
{digitalWrite(13,LOW);}
}
}

 

 

I want to use bluetooth (control by mobile phone) to control the pin13 LED.

I use HC-06 bluetooth model to do that , the RX of HC-06 is connect to TX of Galileo and TX of HC-06 is connect to RX of Galileo.

However it fail   , I dont know the reason but it sucessful on ARDUINO , I want to find some help

It is successful on laptop to control the LED13 , but i could not use HC-06 to control it  :(

0 Kudos
4 Replies
PENGSHEN_Y_
Beginner
907 Views

I need some help please QAQ

0 Kudos
Derp_K_
New Contributor I
907 Views

Can you check this i used it in my manual robot


 

#include <SoftwareSerial.h>

SoftwareSerial BT(12, 13);     // RX, TX , pins could be edited


int BluetoothData = 0;             

void setup()

          {

                 BT.begin(9600); 
    
           }

void loop() {
    
      if ( BT.available() )
     {
        BluetoothData = BT.read();
        
            switch (BluetoothData)      
               {
                case 'A' :                         
                            // Your code here
                break;
                
    
                case 'B' :         
                            // Your code here
                break;
                
 
                case 'C' :                        
                            // Your code here
                break;
 
                case 'D' :
                            // Your code here
                break;

               
           default :
                            // Your code here
               
 
             }
             
             delay (10); // For next data
 }

}

 

0 Kudos
Derp_K_
New Contributor I
907 Views

0 Kudos
PENGSHEN_Y_
Beginner
907 Views

Reply #3 :

It successfuly work on Arudino and serial output at Intel Galileo but it not work at HC-06

 

Reply #4:

Thanks for your help , but my board is not Arudino

0 Kudos
Reply