
TheArduinoGuy
Members-
Content Count
13 -
Joined
-
Last visited
About TheArduinoGuy
-
Rank
Member
Contact Methods
-
Website URL
http://thearduinoguy.org/
Profile Information
-
Location
London, England
-
Interests
Arduino, ArduBoy, ESP8266, Raspberry Pi.
-
Github
https://github.com/thearduinoguy
Recent Profile Visitors
847 profile views
-
I am trying to receive I2C data from a temperature sensor and print it to the Serial Monitor. The code works up to a point and then the device resets. I think it may be something to do with the Watchdog but not sure how to rectify it. Please help. My code is... #include <Wire.h> #include <Si7006.h> Si7006 tempNHum; void setup() { // Initialize the Serial1 port: Serial1.begin(9600); Serial1.flush(); delay(20); Serial1.println("Si7006-A20 example sketch"); // Initialize the Si7006 library // You can pass nothing to light.begin() for the default I2C address (0x40) te
-
The board i'm using has the appropriate resistors to deal with that so that is not an issue.
-
No that didn't work either. The received values differ from what I get when using an Arduino Nano. It's very frustrating.
-
Thanks for those suggestions. I have already done something similar but I will try again. I don't have another MSP430 board so will send the serial via an Arduino Nano. I will let you know how I get on. Cheers, Mike
-
No, idea. It wasn't my code originally. I'm sure there was a reason for it. I'll try them as a char and see if it still works. Thanks.
-
Has anybody else with an MSP430 (even better still the FR5969 variant) managed to get serial at 9600 baud to be read successfully by the device?
-
Help with serial on custom board please
TheArduinoGuy replied to TheArduinoGuy's topic in Energia - MSP
Wow, thanks Fred. Real friendly and helpful of you. -
OK that was something at the terminal side rather the MSP430 side. However, I have discovered something weird going on... I have a Nextion display that communicates over serial at 9600 baud. When you press a button it sends a text string with codes to show which button on which page has been pressed etc. When the screen is connected to an Arduino Nano I get valid strings back which look like: "65 0 4 0 ffff ffff ffff" But when connected to the MSP430 the message back from the display is just garbled. I can send data FROM the MSP430 to the display perfectly fine and contr
-
Help with serial on custom board please
TheArduinoGuy replied to TheArduinoGuy's topic in Energia - MSP
I don't really want to be porting over to a new IDE. I'm used to the Arduino IDE and therefore Energia. I've had a look at CCS at it is way too complicated for me. I have 2 serial ports showing up. One is /dev/ttyACM0 which I use to upload the sketch on. The other is /dev/ttyACM1 which I use for with Serial1 to send debug info. I would have thought there would be a way of sending data over the ttyACM0 port (Serial2 or just Serial ?) via the JTAG programmer? -
I have the following simple code set up to echo whatever I type into the Serial Monitor, but as HEX with a comma separating each byte (So I can also see control codes) : int inByte = 0; // incoming serial byte byte buffer[30]; // buffer for bytes coming from HMI. void setup() { // Enable USCI_A1 RX interrupt // start serial port at 9600 bps: Serial1.begin(9600); Serial1.print("READY"); } void loop() { int bytesread = 0; // if we get a valid byte, read analog ins: if (Serial1.available()>0) { // there are bytes in the
-
I have a PCB made by a third party that has an MSP430-5969 on it. My task is to program new firmware to the device. The board has 4 pins for a JTAG connector which I have connected to the TI MSP-FET Flash Emulation Tool. I am able to successfully upload code to the device. However, pins 2.5 and 2.6 go to an external display with a serial interface (Nextion display). There are also 2 I2C pins broken out If I connect the TX/RX pins of the MSP-FET to those pins I am able to send data from the board using Serial1 to the Serial Monitor window in Energia. Now, this means that wheneve
-
I am trying to port some code over that was originally written in Code Composer Studio to Energia and I have this function: void Send_Command_Screen(unsigned char UARTA1_TX_ARRAY[]) { unsigned int i; unsigned int len; len = strlen (UARTA1_TX_ARRAY); //Send command for(i=0 ; i<len ; i++) { while(!(UCA1IFG & UCTXIFG)); //Loop until the uart is ready UCA1TXBUF = UARTA1_TX_ARRAY[i]; } //Send three times 0xff to end the command for(i=0 ; i<3 ; i++) { while(!(UCA1IFG & UCTXIFG)); //Loop until the uart is ready UCA1TXB
-
Error messages when running the standard Blink example
TheArduinoGuy posted a topic in Energia - MSP
Can some explain what the following error messages are all about and why I am getting them when trying to compile the standard Blink example please? Plus, how to fix this. Thanks. C:\Users\Mike\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430\cores\msp430\atof.c: In function 'atof': C:\Users\Mike\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430\cores\msp430\atof.c:71:9: warning: floating constant exceeds range of 'double' [-Woverflow] C:\Users\Mike\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430