Jump to content
43oh

Bernard

Members
  • Content Count

    68
  • Joined

  • Last visited

Everything posted by Bernard

  1. Hi, Months ago I ordered this booster pack ( 2.2 240x320 LCD V2 )and so far I haven't used it. I would like to know if it is CC3200 compatible. I Dont want to plug it on cc3200 board, just wire it but I do not understand this BP pinout. Can someone help me Thanks and salutations.
  2. Hi, May be this help : http://playground.arduino.cc/Code/TimingRollover Salutations
  3. Hi, Ethernet example " EthernetWebServer " doesn't compile under Energia 013 here is error message : In file included from awebserver.ino:8:0: C:\Users\Nardo\energia-0101E0013\hardware\lm4f\libraries\Ethernet/Ethernet.h:12:28: error: redefinition of 'const IPAddress INADDR_NONE' In file included from C:\Users\Nardo\energia-0101E0013\hardware\lm4f\libraries\Ethernet/Ethernet.h:8:0, from awebserver.ino:8: C:\Users\Nardo\energia-0101E0013\hardware\lm4f\cores\lm4f/IPAddress.h:73:17: error: 'const IPAddress INADDR_NONE' previously declared here Under Energia012 it compiles
  4. I think it's true, although I added a 10uF cap, sometimes the program freeze when server get a client and need more power. I will try a 47uF. To be continued ... Salutations
  5. Hi, Finaly everything is ok .. a 10uF on the nRF24l01 breakout !!! Sorry for the inconvenience caused. Best regards Bernard
  6. @spirillis : thanks for replying. Yes Internet part works when I comment out Enrf24-related items. When I comment out //Ethernet.begin(mac, ip); //server.begin(); radio is ok and I get DHT22 values. Another clue, Resetting the TM4C129 board several times .. sometimes I cans see DHT22 values : copy of terminal with loop debug : Enrf24 radio transceiver status: DEEP SLEEP <1uA power consumption Loop begin <---- nada Enrf24 radio transceiver status: DEEP SLEEP <1uA power consumption Loop begin <---- nada Enrf24 radio transceiver status: DEEP SLEEP <1uA
  7. Hi, Sorry for my previous post, better to forget it . Here is another more clear I hope in order to explain my problem /* TM4C129 SPI module 1 */ #include <Ethernet.h> #include <Enrf24.h> #include <nRF24L01.h> #include <SPI.h> Enrf24 radio(PE_0,PE_2,PE_1); // CE, CSN, IRQ + SCK/MOSI/MISO ==> PB_5/PE_4/PE_5 const uint8_t rxaddr[] = { 0xF0,0xF0,0xF0,0xF0,0xE1 }; unsigned long prev_time; byte mac[] = { 0x00, 0x1A, 0xB6, 0x02, 0xB1, 0x27 }; IPAddress ip(192,168,0, 13); EthernetServer server(80); void setup(){ Serial.begin(115200); Serial.flush(); E
  8. Hi, I would like to centralize several RF sensors on TM4C129 and make a web server, so I write this simple sketch ( may be too simple) But, Serial.println("inbuf"); doesn't work and client.print(inbuf); works once. /* Tiva launchpad connected TM4C129 nRF24L01 RX SPI module 1 26/06/2014 */ #include <Ethernet.h> #include <Enrf24.h> #include <nRF24L01.h> #include <string.h> #include <SPI.h> byte mac[] = { 0x00, 0x1A, 0xB6, 0x02, 0xB1, 0x27 }; byte ip[] = { 192,168,0, 13 }; EthernetServer server(80); Enrf24 radio(PE_0,PE_2,PE_1); // CE, CSN, I
  9. Hi again, I forgot to post the TX side : /* MSP 430g2553 TX DHT22 25/06/2014 */ #include <Enrf24.h> #include <nRF24L01.h> #include <string.h> #include <SPI.h> #include <DHT22_430.h> #define DHTPIN P1_4 DHT22 mySensor(DHTPIN); Enrf24 radio(P2_0, P2_1, P2_2); // P2.0=CE, P2.1=CSN, P2.2=IRQ const uint8_t txaddr[] = { 0xF0,0xF0,0xF0,0xF0,0xE1 }; boolean flag = 0; void dump_radio_status_to_serialport(uint8_t); void setup() { Serial.begin(9600); SPI.begin(); SPI.setDataMode(SPI_MODE0); SPI.setBitOrder(1); // MSB-first mySensor.begin(); radio.b
  10. Hi, Here is a working example TM4C129 using Enrf24 library /* Tiva launchpad connected TM4C129 nRF24L01 RX SPI module 2 25/06/2014 */ #include <Enrf24.h> #include <nRF24L01.h> #include <string.h> #include <SPI.h> Enrf24 radio(PE_0,PE_2,PE_1); // CE, CSN, IRQ + SCK/MOSI/MISO ==> PD_3/PD_0/PD_1 const uint8_t rxaddr[] = { 0xF0,0xF0,0xF0,0xF0,0xE1 }; unsigned long prev_time; void setup() { Serial.begin(9600); Serial.flush(); SPI.setModule(2); SPI.begin(); SPI.setDataMode(SPI_MODE0); SPI.setBitOrder(1); radio.begin(); // Defaults 1Mb
  11. Hi, Thank you energia for reply. I just tried your example under Firefox ubuntu and it perfectly works. I don't know why it doesn't work under Firefox windows .. not a big problem. Salutations
  12. Hi everyone, I have just received TM4C129 evaluation board and test with this program I have found on google. #include <Ethernet.h> // MAC address from Ethernet shield sticker under board byte mac[] = { 0x00, 0x1A, 0xB6, 0x02, 0xB1, 0x27 }; IPAddress ip(192,168, 0, 13); // IP address, may need to change depending on network EthernetServer server(80); // create a server at port 80 void setup() { Ethernet.begin(mac, ip); // initialize Ethernet device server.begin(); // start to listen for clients } void loop() { EthernetClient client = server.available();
  13. Hi, Thank you very much Chicken.. it works perfectly Bernard
  14. Hello, I am trying to use rotary library for my VFO ad9850. Originally writen for Arduino I just changed PCINT for PORT2_VECTOR interrupt. so far can say it almost works but I get some issues I cannot understand Here is my test code : /* encoder_test.ino Energia 011 MSP430G2553 launchpad ver 1.5 Windows 7 Rotary encoder KY-040 */ #include <msp430g2553.h> #include "rotary.h" Rotary r = Rotary(P2_1, P2_2); void setup() { Serial.begin(9600); P2DIR &= ~(BIT1 + BIT2); P2IES = BIT1 + BIT2 ; //high to low transition P2OUT |= BIT1 + BIT2; P2REN = BIT1 + BIT2; P2IE =
  15. Bernard

    Test

    Testing Tapatalk Envoy
  16. Hi, Compiling template I get this error message #include int main(){ return 0;} ..\main.c|1|error: #include expects "FILENAME" or <FILENAME>| ||=== Build finished: 1 errors, 0 warnings (0 minutes, 0 seconds) ===| CodeBlock version : 12.11 Any idea to help me ? Salutations
  17. Hi, Thank you for this nice library. works here on stellaris. Which pins do you suggest on MSP430G2553 ? Thank you Salutations
  18. Hello, I finally got sprintf working. I am able to send and receive datas from BMP085 here is my working code: /* Stellaris LM4F120 nRF24L01 TX BMP085 SPI module 2 I2C module 0 21/01/2014 */ #include<Wire.h> #include "BMP085_t.h" // in a IDE tab .. template from chicken #include <Enrf24.h> #include <nRF24L01.h> #include <string.h> #include <SPI.h> Enrf24 radio(PA_5,PA_6,PA_7); // CE, CSN, IRQ + SCK/MOSI/MISO ==> PB_4/PB_7/PB_6 char txaddr[] = {'d','e','v','-','0','\0'}; BMP085<0> PSensor; void setup() { Serial.beg
  19. Hi, I am sorry, sprintf is ok now, I did not allocate enough for buffer . Thank you and salutations.
  20. Hi, @@energia : Thank you for information. I have tried to use sprintf but, when using it, program crashes and I don't know why . I have found on the web itoa code that works . @@spirilis : thank you very much for this nice library , it helps me a lot in my wireless domotic project. Salutations.
  21. Hi again, I have found another way to convert float to string : void setup() { Serial.begin(9600); } char buffer[12]; void loop() { float value = 150.51; itoa(int(value), buffer, 10); int dec = (value - (int)value) * 100; itoa(abs(dec), buffer, 10); Serial.println( value); delay(1000); } It compiles on msp430G2553, F5529 but itoa is unknown when compiling on LM4F120 and Tiva C Salutations
  22. Hi, I am sorry and apologize for that, I was not clear enough . Sending a string is ok . Thank you -Bernard
  23. hi, Thank you for code.. it works ok but when i use it in this code : /* Stellaris LM4F */ #include <Enrf24.h> #include <nRF24L01.h> #include <string.h> #include <SPI.h> Enrf24 radio(PA_5,PA_6,PA_7); // CE, CSN, IRQ + SCK/MOSI/MISO ==> PB_4/PB_7/PB_6 char str[5]; char txaddr[] = {'d','e','v','-','0'}; //int intvar; const char *str_on = "OK"; //void dump_radio_status_to_serialport(uint8_t); void setup() { Serial.begin(9600); SPI.setModule(2); // SPI 2 SPI.begin(); SPI.setDataMode(SPI_MODE0); SPI.setBitOrder(1); radio.begin(); // Defau
×
×
  • Create New...