|
Post by llorens1 on Aug 31, 2017 9:47:39 GMT
Hi, I want to connect H05 or H06 Bluetooth shield, someone could help me?
|
|
|
Post by Admin on Aug 31, 2017 11:03:23 GMT
Hi, ShieldBuddy has been tested with the Linksprite Bluetooth shield. Unlike other Arduinos, the RxTx serial port (D0, D1) is used to communicate with the shield. This is the "Serial.begin()" port e.g. sketch_aug31c.ino (3.39 KB)
|
|
|
Post by llorens1 on Aug 31, 2017 15:51:36 GMT
Thank you ! I have another question related to serialASC, how We can use UART1 (TXD1,RXD1) or UART2 (TXD2,RXD2) to connect HC-06 or another serial Bluetooth device to ShieldBuddy?
|
|
|
Post by Admin on Aug 31, 2017 17:40:43 GMT
The Shieldbuddy has Serial, Serial1 and Serial2 which come out on the UART pins on the Communications connector.
|
|
|
Post by Admin on Sept 1, 2017 7:51:32 GMT
The Arduino has the Serial class for sending data to the UART which ultimately ends up as a COM port on the host PC. The ShieldBuddy has 4 potential hardware serial ports so there are now 4 Serial classes. The default Serial class that is directed to the Arduino IDE Serial Monitor tool becomes SerialASC on the ShieldBuddy. Thus Serial.begin(9600) becomes SerialASC.begin(9600) and Serial.print(“Hi”) becomes SerialASC.print(“Hi”) and so on.
The serial channels are allocated as per:
SerialASC Arduino FDTI USB-COM micro USB Serial1 RX1/TX1 Arduino J403 pins 17/16 Serial0 RX0/TX0 Arduino J403 pins 15/14 Serial RX/TX Arduino default J402 pins D0/D1
|
|
|
Post by lloren1 on Sept 1, 2017 10:14:56 GMT
Thank you !
I have tested the HC-06 Bluetooth and it works perfectly. Also the PWM performance is fantastic, my congratulations. Another question related to CAN controller. I have a Microchip CAN Analyzer and I tested with different shields over Arduino UNO, and its works, but with the ShieldBuddy I can't, I connect a CAN driver TJA1051 directly to CAN TX and CAN RX. Do you have an example of simple transmission/reception routine using only CAN1 at 500KBps?
|
|
|
Post by Admin on Sept 1, 2017 13:35:34 GMT
What are you using as a CAN transceiver on the ShieldBuddy? The ToggleBit CAN shield is quite good and it what we use.
|
|
|
Post by Admin on Sept 1, 2017 14:51:44 GMT
Here is an example ShieldBuddy sketch that works with the MCP2512 CAN shield receive_check.ino and send.ino examples. Please note that the CAN ID used must be changed to 0x102 as the default 0x00 is not allowed with the ShieldBuddy e.g. CAN.sendMsgBuf(0x00, 0, 8, stmp); becomes CAN.sendMsgBuf(0x102, 0, 8, stmp);
CanTestWithUno.ino (4.15 KB)
|
|
|
Post by llorens1 on Sept 14, 2017 20:14:17 GMT
Thank you!, now is working, also, I want to get a message related to ID 0x102 using a interrupt routine. Is there any interrupt related to specific ID in CAN receive mode?
|
|