Jump to content

yosh

Members
  • Content Count

    207
  • Joined

  • Last visited

  • Days Won

    14

Reputation Activity

  1. Like
    yosh reacted to reaper7 in How can I interface Bosch BME280 shuttleboard with MSP432?   
    @@yosh - Your code works OK with only one mod because my module have "hard" set address 0x76, so I change bme.begin() to bme.begin(0x76)
     
  2. Like
    yosh reacted to Fmilburn in [Energia Library] TLC5615 DAC   
    This is a simple Energia library for the Texas Instrument TLC5615 Digital to Analog Converter, a 10 bit ADC.  The TLC5615 library is located here.
     
    I recently took an online course based on the FR6989 and the C language that used this chip and thought I would implement in Energia.  Here is a screenshot from my oscilloscope of the Energia version generating a sawtooth wave.
     

  3. Like
    yosh reacted to reaper7 in How can I interface Bosch BME280 shuttleboard with MSP432?   
    nice i useful, I got my bme yesterday, so first test today
  4. Like
    yosh got a reaction from energia in How can I interface Bosch BME280 shuttleboard with MSP432?   
    Hi
     
    based on the I2C example code / files from HERE
     
    Library:
    http://static.cactus.io/downloads/library/bme280/cactus_io_BME280_I2C.zip
     
    Lib must be copied into ...\Energia\energia-0101E0016\hardware\msp432\libraries\cactus_io_BME280_I2C
     
    Sketch:
    #include <Wire.h> #include "cactus_io_BME280_I2C.h" // Create BME280 object BME280_I2C bme; // I2C void setup() { Serial.begin(9600); Serial.println("Bosch BME280 Pressure - Humidity - Temp Sensor | cactus.io"); if (!bme.begin()) { Serial.println("Could not find a valid BME280 sensor, check wiring!"); while (1); } Serial.println("Pressure\tHumdity\t\tTemp\ttTemp"); } void loop() { Serial.print(bme.getPressure() / 100.0F); Serial.print(" mb\t"); // Pressure in millibars Serial.print(bme.getHumidity()); Serial.print(" %\t\t"); Serial.print(bme.getTemperature_C()); Serial.print(" *C\t"); Serial.print(bme.getTemperature_F()); Serial.println(" *F"); // Add a 2 second delay. delay(2000); //just here to slow down the output. } Binary sketch size: 35511 bytes (of a 262144 byte maximum) >>>> Done <<<< At least it compiles without errors ... can't test it further since I don't have the BME280.
     
  5. Like
    yosh got a reaction from energia in How can I interface Bosch BME280 shuttleboard with MSP432?   
    Hi
     
    have a look on datasheet pages 37..39 for the pinout (I2C or SPI) and
    here https://ae-bst.resource.bosch.com/media/products/shuttleboards/BMP280_Shuttleboard_Flyer.pdf for the corresponding pins on the "shuttel board"
     
    MSP432 Launchpad pin map here: http://energia.nu/wordpress/wp-content/uploads/2015/03/MSP432-LaunchPad-%E2%80%94-Pins-Maps.jpg
     
    Arduino example + code here (if you plan to use Energia): http://www.seeedstudio.com/recipe/257-bosch-bme280-1-chip-temp-humidity-pressure.html(<- you don't need the level shifter!)
     
    additional information, sketch, etc. here: http://cactus.io/hookups/sensors/barometric/bme280/hookup-arduino-to-bme280-barometric-pressure-sensor
     
     
    Best wishes
  6. Like
    yosh got a reaction from Towhid in How can I interface Bosch BME280 shuttleboard with MSP432?   
    Hi
     
    have a look on datasheet pages 37..39 for the pinout (I2C or SPI) and
    here https://ae-bst.resource.bosch.com/media/products/shuttleboards/BMP280_Shuttleboard_Flyer.pdf for the corresponding pins on the "shuttel board"
     
    MSP432 Launchpad pin map here: http://energia.nu/wordpress/wp-content/uploads/2015/03/MSP432-LaunchPad-%E2%80%94-Pins-Maps.jpg
     
    Arduino example + code here (if you plan to use Energia): http://www.seeedstudio.com/recipe/257-bosch-bme280-1-chip-temp-humidity-pressure.html(<- you don't need the level shifter!)
     
    additional information, sketch, etc. here: http://cactus.io/hookups/sensors/barometric/bme280/hookup-arduino-to-bme280-barometric-pressure-sensor
     
     
    Best wishes
  7. Like
    yosh reacted to reaper7 in [Energia Library] EtherEncLib for ENC28J60   
    examples->HelloWorldActivate.ino allows You control RED_LED on MSP430G2
  8. Like
    yosh got a reaction from reaper7 in how would I create a delay in output going high?   
    Have a look here for an example:
     
    http://energia.nu/Tutorial_Debounce.html
     
    Your debounce time would be 1000 ms.
  9. Like
    yosh reacted to reaper7 in [Energia Library] EtherEncLib for ENC28J60   
    bump!
    new 0.4.2 version - fixed CS pin inside enc28typedef.h
  10. Like
    yosh reacted to reaper7 in [Energia Library] EtherEncLib for ENC28J60   
    Hi! - I don't know how to help You,
    a good choice is to buy a simple logic analyzer.
     
    Do You have any message on serial console?
    Try to "enable" debug message from lib -> EtherEncLib.h change DEBUGLIB value from 0 to 1 (line 40)
     
    You must know how to check process step by step,
    simplest method is inserting something like this Serial.println("i'm here"); in different library places (like begin, available etc) called from sketch.
     
    You must be like a Herlock Sholmes
  11. Like
    yosh got a reaction from Towhid in interfacing msp432p401r with bosch bno 55   
    https://github.com/kriswiner/BNO-055/blob/master/BNO055%2BMS5637_Basic_AHRS_t3.ino
     
    Starting point if you are using Energia...
  12. Like
    yosh got a reaction from bluehash in interfacing msp432p401r with bosch bno 55   
    https://github.com/kriswiner/BNO-055/blob/master/BNO055%2BMS5637_Basic_AHRS_t3.ino
     
    Starting point if you are using Energia...
  13. Like
    yosh got a reaction from reaper7 in Connecting VCC to breadboard?   
    Did you check if there is a short in your circuit?
  14. Like
    yosh reacted to reaper7 in [Energia Library] EtherEncLib for ENC28J60   
    @lessarlz - sorry...my mistake...wrong platform
    for MSP CS pin is PIN10 P2_2...
    try to change hardware connection(move wire from msp pin5 to pin10) and change uart speed to 9600 for msp430
     

     

     

  15. Like
    yosh reacted to reaper7 in [Energia Library] EtherEncLib for ENC28J60   
    @lessarlz - ENC28j60 is a spi device, so connection is very simple
    for eg. if You are using MSP430G2553 board:
     
    ENCpin   MSPpin
    Vcc          PIN1    +3.3V
    GND        PIN20  GROUND
    CS           PIN10    P2_2  (you can change this pin in file enc28typedef.h - line 424, then also mandatory! in sketch pinMode(10,OUTPUT);
    RESET    PIN16  RESET
    SI             PIN15  P1_7 (MOSI)
    SCK         PIN7    P1_5 (SCK)
    SO           PIN14  P1_6 (MISO)
    --
    WOL, INT, CLKOUT -> not connected
  16. Like
    yosh reacted to terjeio in Multimedia Center   
    PCBs for the controller has now arrived from China, no routing errors! However I have some problems with the KeyStone DAB-module, I cannot get it to respond like the development board which works flawlessy - not good. The DAB module is on the preamp board, I have to delay sending it off for fabrication this until this is resolved.
     
    The controller is performing well, her are a few pics - code will follow later when I am happy with it:

     
    Frame is milled from 10mm solid aluminium.
     

     
    Assembled controller board, touch sensors are home-made - a bit of black art to get them working reliably when embedded in the aluminium block.
     

     
    Not too bad for beeing a prototype, I have to allow for some adjustment of the "wheel" - or find a way to perfectly align the alu block after turning it around to mill the front.
  17. Like
    yosh reacted to terjeio in Newbie - need help in choosing LaunchPad model   
    It could be due to incorrect I2C address - the silkscreen on my display says it is 0x78 which is not correct, it is 0x3C - yours might be different.
    Also, the initialisation sequence is not the same for SSD1306 and SH1106 driver chips. If you are not sure which to use try both by commenting out the #define SSD1306 statement in oled.h.
  18. Like
    yosh reacted to chicken in 2.5 sec delay after power up   
    Energia has a few timeouts while waiting for the optional external XTAL to spin up. According to the comments in wiring.c, the timeout is 2 seconds.
    https://github.com/energia/Energia/blob/master/hardware/msp430/cores/msp430/wiring.c
    (Line 80 or thereabouts)
  19. Like
    yosh reacted to Fmilburn in MCP3008 ADC Library   
    The MCP3008 is an easily used 10bit, 8 channel, Serial Peripheral Interface (SPI) Analog to Digital Converter.  I created an  Energia library that can be found here and used to read any of the eight pins with a single call.  Conversion is done for voltages between 0 and 3.3 V, including on the CC3200, and results in a integer reading between 0 and 1023.  This library is for single ended operation only and uses hardware SPI.
     
    An example is included that demonstrates reading from all 8 channels.

     
    Tested with Energia 0101E0016 on the following LaunchPads
      * CC3200-LAUNCHXL Rev 4.1 (80 MHz) EMT
      * CC3200-LAUNCHXL Rev 4.1 (80 MHz)
      * MSP-EXP432P401R (48 MHz) EMT
      * MSP430F5529 Rev 1.5 (25 MHz)
      * MSP-EXP430FR5969 Rev 2.0 (16 MHz)
      * MSP-EXP430G2553 Rev 1.5 (16 MHz)
     
  20. Like
    yosh reacted to NiHaoMike in OpenDAC HD: an open hardware HD audio DAC   
    I recently got a renewed interest in HD audio and decided to work with my best friend on an open source HD DAC. I selected MSP430 since it's easy to work with using Energia and an Arduino is overkill for what I'm using it for. (I normally use PICs, but then my friend, who is new to embedded programming, would have a hard time contributing.)

    https://github.com/NiHaoMike/OpenDAC-HD
  21. Like
    yosh got a reaction from spirilis in Custom MSP430-Board for EasyDriver   
    Hi, encouraged by @@bluehash I

  22. Like
    yosh reacted to roadrunner84 in Custom MSP430-Board for EasyDriver   
    How about replacing the top lid with a same sized heat sink?
  23. Like
    yosh got a reaction from bluehash in Custom MSP430-Board for EasyDriver   
    @@bluehash Yep, I already thought about that ... I think I'll just have to give it a try. Initially I wanted to use a 3D printed enclosure, but I fear that it could get too hot inside the box and the PLA melts ...

  24. Like
    yosh reacted to bluehash in Custom MSP430-Board for EasyDriver   
    Awesome! Have you looked into heatsinks?
    A thread on AVR Freaks for heat issues.
  25. Like
    yosh got a reaction from qgs in Custom MSP430-Board for EasyDriver   
    Hi, encouraged by @@bluehash I

×
×
  • Create New...