Jump to content
43oh

mic

Members
  • Content Count

    6
  • Joined

  • Last visited

  1. Hello once again I have problem with Stellaris LM4F120 Launchpad and DHT22 (connected on PB_7). I'm using LCD 5110(3,3v) + DHT22(tested on 5v+ resistor 10kOhm & 3,3v + resistor 10kOhm ) + on I2C BMP085(3,3v), TinyRTC (5v), HD44780 20x4(5v) (all on PD_0 & PD_1) When I'm using only LCD5110 + DHT22 without <Wire.h> liblary included, both are working well: When I'm using LCD5110, DHT22 + all I2C devices with <Wire.h> I get on HD44780: Also TinyRTC gives me a strange dates for example 2050/07/21 When I'm disconnecting DHT22 and running the same code as in cas
  2. Ok, Thanks. I will try to find something related to clock in LCD_5110 library (maybe SPI.setClockDivider(...) or similar ). Yesterday I focused on that the DHT22 library when is compiled alone is working properly and with LCD is not. I tested the Serial.print, Serial.println and Serial.write, when only LCD_5110 library was included. Each time there were improper chars send (on any baud rate). So I believe that should be something with the 5110 lib. /// This was a problem with code for LCD_5110 (not library but code in .ino file) when I'll rewrite and got this fully operat
  3. Hello Rei Vilo, finally I was able to run my DHT22 on Stellaris Launchpad. But as usual I have some problems. When I'm uploading ported version of Your code DHT22_430_main, I receive: *** DHT22 test starts PUSH2 to end debug bits received 40 debug 2, 19, 1, 10, 2C =? 2C debug checksum ok debug RH% 537 debug oC 272 RH% 53.7 % oC 27.2 *C debug bits received 40 debug 2, 29, 1, F, 3B =? 3B debug checksum ok debug RH% 553 debug oC 271 RH% 55.3 % oC 27.1 *C debug bits received 40 debug
  4. Hello, sorry I'm using Stellaris Launchpad LM4F120XL and I'm trying to connect it with DHT11. For connection I use DHTPIN PB_7. Code that I'm running is copied from AdaDHT11.zip from the first post. First problem was that I removed all "case:" from DHT.cpp Now I think I have problem with conversion between data types. Is it correct to use this function in void loop: float h=dht.readHumidity() float t=dht.readTemperature() if (isnan(t) || isnan(h)){ gotoXY(0,0); LCDString("NOK") delay(500); } else { gotoXY(0,5); LCDString("OK"); gotoXY(0,1); sprintf(buffer,"%f",h); // &l
  5. Thank You for help. Unfortunately at this moment part of code connected with 5110 LCD that I'm using stopped to work. I mean that screen is not updating at all or only one frame of animation is displayed, also actions connected with push buttons are not active Is it possible to bypass this problem ? I'm using modified code from LCD_5110_LMF10.ino by Rei Vilo and code made by Nathan Seidle. In this code push button 1 changes backlight on/off and push button 2 changes from displaing animation to displaying some text Code joined with the code from post above: // // LCD_5110_LM
  6. Hello, sorry I'm totally beginner working with Stellaris less than a week so probably those questions will be silly but: I saw a project "Using Stellaris LaunchPad as a Thermometer" I wonder is it possible (and if yes how ?) to port to Energia ? Is there any ready library for DHT11 working with LM4F120 ? I saw this only for MSP430. Thank You Mic
×
×
  • Create New...