Jump to content

Frida

Members
  • Content Count

    23
  • Joined

  • Last visited

About Frida

  • Rank
    Member
  • Birthday 08/06/1950

Profile Information

  • Gender
    Male
  • Location
    Middelfart, Denmark
  1. Frida

    Checksum error in DHT11 interface with MSP430G2553

    The library that you refers to is for Arduino From dht11_test.ino: // // FILE: dht11_test.ino // AUTHOR: Rob Tillaart // VERSION: 0.1.00 // PURPOSE: DHT library test sketch for DHT11 && Arduino // URL: // // Released to the public domain // From dth.cpp: int dht :: _ readSensor (uint8_t pin, uint8_t wakeupDelay) { // INIT BUFFERVAR TO RECEIVE DATA uint8_t mask = 128; uint8_t idx = 0; // replace digitalRead () with Direct Port Reads. // reduces footprint ~ 100 bytes => portability issue? // direct port read is about 3x faster uint8_t bit = digitalPinToBitMask (pin); uint8_t port = digitalPinToPort (pin); volatile uint8_t * PIR = portInputRegister (port); I think it requires conversion from avr controller to msp controller. How about trying the library that @energia suggested.
  2. Frida

    MSP430G2553 Workshop

    Have you made pullup, or pulldown on all unused inputs, or put all unused pins for output. An input collects noise from the surroundings as you see.
  3. Frida

    MSP430F5529 and RFM12b used together

    Yes, when you join the 10's system, it does not work. But when using weighted values, it works. 16 + 8 + 4 = 28 16 | 8 | 4 = 28 [edit] The rules of calculation must be used on logic circles, not on normal account. There were rules I learned in the 1970s. 2 + 1 + 1 = 3, not 4 If you take 1 + 1 = 1 because 1 becomes or with 1. 2 + 1 = 3 because 2 becomes or with 1. Binary is 2 = 10 and 1 = 01, these or together give 3 = 11.
  4. Frida

    MSP430F5529 and RFM12b used together

    In logical circles, we normally use + and * for OR and AND, which in programming is also | and &. So +, OR or | are the same. So *, AND or & is the same. Port P6 has 8 bits that we usually count bit 1 to bit 8, but The processor counts from 0 to 7. | --- P6.5 ~ SDO | BIT 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 0 WEIGHT 128 64 32 16 8 4 2 1
  5. Frida

    MSP430F5529 and RFM12b used together

    Firstly, you have not stopped watchdog. void main () { // WDTCTL = WDTPW + WDTHOLD; // stop watchdog timer to prevent time out reset // init ports Secondly, what bit do you read now and how many shift do you have? temp = p6in; temp >> = 4; These are the most illuminated points now. Keep on, at last it will success.
  6. These days I use http://platformio.org
  7. In your CC you have: |(address & 0x3F) // 0x00 to 0x2E. and in your CS you have: |(address & 0x3D) // 0x30 through 0x3D). Your CS(0, 0x30); // Reset CS(0, 0x3D); // NOP, TX FIFO free gives the correct adr, but your CS(1, 0x3A); // flush RX FIFO CS(1, 0x3B); // flush TX FIFO gives 0x3A & 0x3D -> 0x38 and 0x3B & 0x3D -> 0x39 should it not have be with 0x3F instead of 0x3D
  8. Had you ever seen: http://www.espruino.com/
  9. Frida

    Cant install Energia on ubuntu help

    You always need to have a space after cd. for example cd ~ or cd /home/myname/directory
  10. Try Energia 12, something happened in the newer versions.
  11. Frida

    Goofed BT Temp, Light, Humidity sensor...

    What with pull up resistor to DHT11, and open collector output from mc? See page 5 http://www.robotshop.com/media/files/pdf/dht11.pdf
  12. Frida

    Goofed BT Temp, Light, Humidity sensor...

    What with pull up resistor to DHT11, and open collector output from mc? See http://www.robotshop.com/media/files/pdf/dht11.pdf
  13. Also works fine on Firefox on Ubuntu 14.04 64 bit
  14. if (BTN=0); //check button status should be if (BTN==0); //check button status
×