43oh

Members

3,117

7,299

Members

3,399

Members

925

## Popular Content

Showing content with the highest reputation since 10/16/2010 in Posts

1. ## Using the internal temperature sensor

TI has some sample code for the internal temperature sensor, but it does not explain how to scale the ADC reading to useful units of degrees. Here is a step-by-step explanation of how to do the scaling with integer math for degrees C, K and F. There is also sample code to display the temperature on a Nokia 5110 LCD. The data sheet (SLAU144) has this formula for converting temperature in degrees Celsius to voltage. V = 0.00355 * C + 0.986 What we need is a formula for converting voltage to temperature. Rewrite the data sheet fomula with temperature on the left 0.00355 * C
28 points
2. ## Volt/Amp/Watt meter

This is a simple voltage and current meter that uses the TI INA219 chip. Voltage measurement range is 0 to 26 volts with 4 mV resolution and current measurement range is -4 to +4 amps with 1 mV resolution (when using a 0.01 ohm shunt). The specs are inferior to a pair of quality multimeters, but it is a fraction of the price and shows wattage in addition to voltage and current. The Nokia 5110 display is used so the firmware could be enhanced to do simple graphing. Sending the measurements to a computer could also be done. Using the INA219 makes for a very simple circuit. The normal d
21 points
3. ## Time & Temperature on Nokia 7110

This uses code from Software RTC, Using the internal temperature sensor and Nokia 5110 template class. The code has been modified and refined a bit for this project. main.cpp #include #include #include #include #include "nokia7110tl.h" using namespace nokia7110; static const unsigned char ti[] = { 48, 48 / 8, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC, 0xFC,0xFC,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0xF0, 0xF0,0xF0,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
14 points

Hello everyone, There has been alot of good questions going on in the past few weeks - accompanied with very good discussions. One way you can show your appreciation is by using the "Thanks" or "Thumbs up " button on the top right. It may be hard to notice but a screenshot always helps: Use it if you have received something useful from a member. It takes time to write those posts and code. Consider it as karma, that's as good as it can get. :mrgreen: Thanks everyone..and wish you a happy new year.
14 points
5. ## Software Real Time Clock (RTC) - two methods

The Launchpad comes with a 32.768 kHz crystal that can be used when timing more precise than the DCO is needed. The crystal frequency is useful for simple timing tasks, such as a RTC, because it is a power of 2. That allows a simple cascade of 15 flip-flops to create a 1 pulse per second time base. It is common for microcontroller timers to have prescalers, postscalers and/or preset divisors that are simply a tap on the flip-flip chain. The watchdog timer in the MSP430 is an example of a timer with power of 2 presets (64, 512, 8192, 32768). TimerA units have a prescaler with power of 2 presets
13 points
6. ## Frequency Counter using Launchpad & Nokia 5110 LCD

This is a simple frequency counter with a range of 1 Hz to 16 MHz. It uses the 32 kHz watch crystal so the accuracy is good enough for many applications. Gate time is automatically set to 250 ms or 1 second. There is no signal conditioning (front end), so it is limited to 3V logic levels signals only! It is intended to be used with digital circuits like another MSP430 or 74HCxx circuits. It is not a substitute for a proper commercial frequency counter. How a frequency counter works: Fundamentals of Electronic Counters by Agilent Wiring main.c #include "msp430
13 points
7. ## SD Media Player with FAT16

Here is a video of the music player in action: The code has the following functionality: Initilise the FAT16 filesystem from an SD card in a single command - ThinFAT_Init(); Open Files on an SD card and allow you to test each filename with a callback Index Files by useing the same command as to open them with a callback returns data on if the filestream is active returns data on how far the file has been read through callback for when end of the file is reached Open Folders on an SD card - Untested and limitations: uses 54 bytes of ram approx dosen't support fragmented files reads file end
11 points

11 points
9. ## Etch A Sketch

This is an LCD version of an Etch-A-Sketch. Made this for my daughter's 5th birthday. LCD is a 128*128 Powertip T6963c LCD 5v for the LCD and LP is supplied by a 5v cell phone backup 2x 100k linear pots used for control Negative contrast (-13v) is currently supplied by two 9v batteries - I'll be making one with a MC34063 later The shake detection was salvaged from a toy - no idea where to get them (I need to turn down the number of shakes needed) I used an old Floppy Drive cable to connect the LCD to an LP booster made on perfboard Many thanks to RobG for his assistance (see here
11 points
10. ## 24x16 text on VGA using Launchpad w/ G2553

This is derived from NTSC/PAL video text display using launchpad. video_vga.asm is a drop in replacement for video.asm. The sync timing is for 640x480 60 Hz VGA mode. A 330 ohm resistor must be used on all video lines (R/G/B) because they are analog signals with a max allowed voltage of about 1 volt. Only one of the R/G/B lines can be driven directly from the MSP430 due to current limitations. A buffer such as 74AHC125 could be used to drive all three if desired. Wiring Gnd ------------ Ground [5, 6, 7, 8, 10] P1.5 ----------- Vertical Sync [14] P1.6 ----------- Horizontal Sy
10 points
11. ## Flashing the missing DCO calibration constants

EDIT: Here's another really nice DCO calibration program. It's part of TinyOS-msp430. http://code.google.com/p/tinyos-msp430/ It's the file called calibrate-dco. As gordon, who discovered it said, "[it] appears to be a quite beefed-up DCO calibration app, with goodies on the side (taking silicon errata into account for various devices when calibrating)." It looks like it's built to be solid and reliable. I skimmed over the code and didn't see anything for calculating SegA checksum, but that usually isn't an issue for most non-critical applications. EDIT: maxpenna shared another versi
9 points
12. ## LaunchPad Web Server - control your LP over the network

Here's the web server software for my Ethernet booster pack. The software is 95% ready, still few bugs and some cleanup left, I will post the code when complete. The whole thing takes up just under 4.5KB and uses ~400 bytes of RAM, so you still have ~11KB and ~100 bytes of RAM left for whatever you need. BTW, I really need to get a tripod for my iPhone
9 points
13. ## webbotlib speech synthesizer on launchpad

not sure this is considered a project. the package i am providing allows one to play w/ TTS on a launchpad w/ g2553 chip. i did not create the TTS s/w, credit belongs to webbot at http://webbot.org.uk instead of publishing derived code, i am publishing a perl script to convert his code for msp430 use. this allows me to avoid licensing issues and i think anyone want to implement this should look at the original source. the speech system is not high quality but fun to use in projects. i.e. talking clocks, alert / alarm modules, robot voices, etc. . s/w only speech synthesizer techn
9 points
14. ## Software IIC master in C, C++ class and C++ template

This is software IIC master code in C, and C++ using a class and a template. There is also code/class/template for IIC EEPROM and the INA219 voltage/current monitor. There are 4 core functions... init(); // Init GPIO start(); // Start bit stop(); // Stop bit unsigned ex(unsigned); // Data byte & ack exchange and 3 helper functions that call ex();... unsigned write(unsigned); // Write a byte & ack, verify unsigned read(); // Read a byte & ack unsigned read_nak(); // Read a byte & nak Creating an instance of the IIC object is different for each code type
9 points

http://www.youtube.com/watch?v=teZyF1IDtCM Not much info yet, just the price; a \$4.99 kit. :clap: EDIT1: Found an LCD boosterpack for this board http://www.kentecdisplay.com/uploads/so ... ide_03.pdf EDIT2: by the name of the boosterpack It looks like there will be one of the LM4F120 Series http://www.ti.com/mcu/docs/mculuminaryf ... mostrecent
9 points
16. ## MSP430 PC GUI Eval Tool

Hey all, I was working on a GUI that would be able to control any and all functions on a particular MSP430 processor from a PC GUI. Only limitations a course would be P1.1 and P1.2 which are required for GUI communication. This is very very very much so a work in progress. Currently i'm writing it using WX Widgets libraries to simplify the GUI aspect of it. However, currently i'm not using a "form builder" so it is going to take a handy amount of time to write. Good c++ experience though.... This GUI would be very handy to have from a hardware/software test debug standpoint. For ex
9 points
17. ## How to use temperature calibration data

[tipdf]SLAU144[/tipdf] chapter 24 describes the calibration data stored as TLV (tag length value) in info segment A. There are ADC values for 30C and 85C for both 1.5V and 2.5V internal reference voltages. These temperature calibration values can be used to improve the accuracy of the internal temperature sensor. There is no explanation of how to do this, so here is how to do it... Before using calibration data it would be a good idea to validate the info segment checksum. The checksum is stored in the first word and is the negative of the XOR of all of the following words. This function w
8 points
18. ## FourThreeOh wins TI Community Highlight of the Year Award for 2016

Thanks @Rei Vilo. To all, the award goes to you too. Thanks for being wonderful members.
8 points
19. ## IPv6 with the Launchpad

Hi, Though I'd like to share a little project of mine, which I have spend the last couple of weeks on. It's a small IPv6 stack running on the MSP430G2553 and using Microchip's ENC28J60 as MAC/PHY. I got a breakout board for the ENC28J60 cheap off e-bay (~ 7 \$) and wondered if it was possible to create a small IPv6 stack using the MSP430-value line. I know that it is a bit silly, as there both are plenty of IP stacks around for the bigger MCUs and the WizNet chips (which do TCP/IP for you) are actually cheaper than the ENC28J60. But I just had to try doing it myself :oops: Now, as the
8 points
20. ## Howto: Launchpad as External Programmer

Hi Guys, I just fought my way through the process of getting a Launchpad to operate as a standalone programmer on a virgin windows machine. I didn't want to install CCS5.1 to get this to work. I want the bare minimum install footprint because this is going on a production line computer. Follow this process and it should work for you too. 1. Install the FET430UIF Low-Level USB VCP Drivers. 2. Plug in the Launcpad to the PC and let the PC assign the drivers to the Launchpad. 3. Open up a command console and enter the command "devmgmt.msc". 4. Verify the "MSP430 Application UART
8 points

Here is one way to temporarily lower LaunchPad's 3.6V supply down to 3V (or 3.3V) Attach 220k (240k) resistor in parallel to R8. The values are for LaunchPad v1.5. LP v1.4 divider's values are 10 times smaller, so adjust as necessary. Also, LP will not work below 3V.
8 points
22. ## USCI UART bit rate setting

The MSP430x2xx Family User's Guide has several forumulas and tables for UART bit rate calculation. Makes it look more complicated than it is. Here is simple code to setup the bit rate divisor and modulator (for oversampling mode). First you need to know the SMCLK frequency and the desired bit rate. const unsigned long smclk_freq = 16000000; // SMCLK frequency in hertz const unsigned long bps = 19200; // Async serial bit rate Then a 20 bit divisor value can be calculated. const unsigned long brd = (smclk_freq + (bps >> 1)) / bps; // Bit rate divisor Shift and mask to setup the reg
8 points
23. ## Nokia 5110 C++ Template Class

This is a C++ template for the Nokia 5100 that uses software SPI. Inspired by Rickta59's GPIO template Using C++ templates allow the compiler to make decisions at compile time that would normally occur (repeatedly) at execution time. This results in smaller and faster code. They also are type safe and compatible with source level debugging (unlike macros). Software SPI is used to make the code very portable to the entire MSP430 family and allow flexible pin assignment. Four wiring schemes are supported. This is the syntax for creating an instance of the template. Nokia5
8 points
24. ## GPS logger for a local Beagle club

This project was put on hold over the holidays. It's always a busy time, plus the club doesn't hold meets over summer. But I have just completed another 10 units. More of the same, but thought you guys might enjoy some more photos. I couldn't get the same batteries as the last batch, which were 650mAh, these have much smaller 220mAh. But this still provides about 4 hours of run time. The uBlox GPS modules are a huge improvement. Even without the SAW filter in the RF path and the sub-optimal PCB size compared to the antenna. These find more GP
7 points
25. ## FourThreeOh wins TI Community Highlight of the Year Award for 2016

Well deserved, congratulations Gerard!
7 points
26. ## MSP430 meets LaCrosse Temperature/Humidity sensor TX3TH

Hi, Excuses for the long post !! After I found out that I could detect signals in the 433Mhz band using an AIR Boosterpack (See viewtopic.php?f=9&t=2944 AIR Boosterpack RF spectrum display) I wanted to display the data I was receiving on the 433 Mhz band. Ive got a Lacrosse temperature/humidity logger WS8610 that can read up to 3 external sensors and log the data. These sensors broadcast their data every minute or so. Since I have a logger and I have a display you might ask why do you want to read the data ? My motivation for this is simple, the datalogger can only capture da
7 points
27. ## Ethernet Booster Pack

[EDIT] The newest version of this BP is here [EDIT] This project is finished Available in the 43oh Store. This is still in it's early phase, so I need your input. Here are some specs so far: 1. WIZnet's W5200 Ethernet controller chip (W5100 or W5300 is an option.) 2. MagJack 3. LDO + power header 4. Opto isolators (2 or more) + output header 5. Input/output header for switches/keypad/display 6. DIP or SMD MSP430G I have decided to use W5200 because... "W5200 chip is a Hardwired TCP/IP embedded Ethernet controller that enables easier internet connection for embedded systems using SPI (S
7 points
28. ## Linux Serial Communication working w/modified cdc-acm module

So I finally tried out the replacement cdc_acm module from the e2e forums. I'm using the file 7028.msp430_patch.zip mentioned in this post http://e2e.ti.com/support/low_power_rf/f/156/p/53610/697952.aspx#697952. I'm using Ubuntu 11.04 with a 2.6.38 kernel. Installing this patch solved my problems with /dev/ttyACM0 and linux. I tried the unmodified Energia ASCII Table example. The code in that sample doesn't wait before sending data, however with this patched module it just works. With the old cdc-acm my whole UI would freeze for multiple 10s of seconds. There are some things that a
7 points
29. ## AIR Boosterpack RF spectrum display

Hi all, One of the things I wanted to build using the Anaren AIR boosterpack was a mini spectrum "analyzer" or spectrum display. During my holiday i found time to play around with both the AIR boosterpack and the LCD module Lars has produced. Although the AIR boosterpack was designed for 868/915 Mhz it seems the receiver inside (CC110L) is sensitive also in the 433Mhz region. The code I share with this mail allows the user (by changing a define) to switch between 3 frequencybands. Two buttons of the LCD package allow change of RX bandwidth and channelwidth. THe screenshot below sh
7 points
30. ## Data Logger board

I received the datalogger board today and after multiple hw tests to verify that board functioned as expected, I completed the first of 3 test boards. The last test is to verify that the memory chip is recording correctly, and until then I can't say that this board is 100% functional. though the current 80% has me pretty excited. Now I'm waiting for the addon board that is breaks out the datalogging pins plus a couple other pins to a usable 3 pin configuration. Images included in this set have the button 1 switch which allows for it to be a reset or action button, and the male header pins.
7 points
31. ## Ethernet Booster Pack

First board (actually it's the second one) assembled and working as expected! Shipping rest of the boards to SA tomorrow.
7 points
32. ## Nokia 7110 Library

Here's my version of Nokia 7110 library. Just text for now, but graphics will be included later on. Enjoy! main.cfont_5x7.h sed1565.c sed1565.h
7 points
33. ## CC2500 Breakout/BoosterPack

Excellent. Probably much cleaner than the rotary tool I was thinking of using. :? Here's the tutorial
7 points
34. ## CC2500 Breakout/BoosterPack

After going back and forth all weekend on what jumpers to include, here's the "final" design. The board includes: 1 Booster pack 2 G2xx3/CC2500 boards 2 breakout boards compatible with booster pack 1 breakout board with single row header (I know this is one board too many, so if Seeed rejects it, I will remove single row breakout.) Booster pack is designed to work with G2xx3 chips (is there any need for G2xx1/2 compatibility?) Port mapping: P1.1 - MISO (CC2500/SPI 2) P1.2 - MOSI (CC2500/SPI 2) P1.4 - SCLK (CC2500/SPI 2) P1.5 - SCLK (CC2500/SPI 1, Memory) P1.6 - MISO (CC2500/
7 points
35. ## Anaren TI CC110L RF AIR Booster Pack

Here's an updated CCS project for the Anaren Air Booster Pack. It's quite obvious they're not familiar with CCS. Included directories are very vague and leave header includes looking like "../../../HAL/HAL.h" instead of simply, "HAL.h". The code is a mess as well as the project's documentation lacks notes on how to configure the CCS project. CCS v5.1 Project [attachment=2]Anaren_CCS.zip[/attachment] CCS v4.2 Project [attachment=0]Anaren_CCS_v4.zip[/attachment] Originally, it required you to create a new workspace in the /Firmware folder then import the project. With this project, you c
7 points
36. ## Anyone notice the 8-pin MSP430 yet?

Presenting the MSP430G2230. Only 8 pins!
6 points

I got my Launchpad to output B/W composite video. It only displays one image without re-flashing though, so it's not extremely useful. The only external components are two resistors and a crystal oscillator. I plan on writing it up on my blog and releasing the source sometime this week, unless I get too busy with school. I wasn't sure if I'd be able to ever get this working, so I'm feelin' pretty good right now! Proof ;-) Code for use with an external oscillator: Launchpad_TV_Out.rar Code for if you have your DCO configuration constants calibrated: Launchpad_TV_Out_for_calibra
6 points

I
6 points
39. ## WS6318 GSM Booster Pack

Okay. There is the yet another LP booster pack. It is for communication over GSM network. Now I have several working prototypes. PCB has couple of bugs but booster pack has full functionality. Soon, I will correct all the errors and give a full description. Schematic is in the attachment. If anyone suggest any modification or expansion of the functionality - this is a chance to introduce them into the final PCB tracerouting. WS6318.pdf
6 points
40. ## Wrist watch project

I've now got the first batch of the 250 SPI B/W small LCD displays that I ordered, but I'm not quite sure what to do with them. The obvious thought is a booster pack, but since this is quite a small display I'm thinking maybe I could make a watch kit with it. I might also make some booster packs eventually. The display data sheet is here. It is SPI-based, but it uses a 9-bit SPI interface. The first bit is decides whether it's a write to the display memory or a config-command. As far as I understand, the USCI-chips don't support 9 bits, while the USI ones do. I've made a bitbanging driver
6 points
41. ## parallax rfid reader + back door

This is a project I have finished recently. Since I am lazy and didn't feel the need to use keys to access my apartment I decided to hook up an rfid reader to my back door, which in turn will open my breaker bar on my patio door. It is sorta of a kludge till I can find a stepper motor to replace my rube goldberg~esqe like device. How it lifts the breaker bar, it uses a solenoid to pull a large ball bearing that is attached to a string, that goes through a screw eye, then it attaches to the breaker bar. when the correct card is scanned it pulls on the balanced ball bearing, which it wi
6 points
42. ## Data Logger board

This is the first graph of data pulled from the data logger. This was a simple test, but verified saving and retrieving of data from the chip and some other test functions that I have been working on. This test used the WDT interval timer and took roughly an hour to run to collect 4096 samples. The variances in temp were due to the time and the amount of sun hitting the logger(2 rapid increases in temp). I think it's time to populate another board as I know the setup works and would allow me to start running longer tests while working on code.
6 points
43. ## Pronto IR code transmission

Pronto CIR codes have become a de facto standard for CIR code exchange. They where originally used by the Philips Pronto series of universal remotes, but are now supported by many universal remotes and PC CIR software. There is a database of codes at Remote Central. This MSP430 firmware will send most type 0 pronto codes - that is the most common type. It can run at 1 MHz, so it can be used with the G2231 and G2211 chips that came with the rev 1.4 and earlier Launchpad. The pronto codes have the timing in units of the IR carrier frequency. This characteristic allows the firmware to wor
6 points
44. ## Ethernet Booster Pack

Correct (I don't have the oven... not yet )
6 points
45. ## Energia (Arduino for msp430)

I came across the port of the Arduino IDE for the msp430 (it is called Energia) reading another post. Robert Wessels has made a great first stab at supporting the Arduino API for the launchpad boards. It already works on the MacOSX and Windows platforms. Edit: [i checked in the changes to git for the linux version [Linux isn't up to snuff yet, but I'll be helping him getting that working properly.] . It should be good to go. If you are running linux and have a working java, msp430-gcc and mspdebug. For a limited time you can try out an early snapshot by downloading this linux32 distribu
6 points
46. ## Comprehensive DCO calibration

The G series MSP430 have 1 or 4 factory calibrations for the DCO stored in info segment A. This firmware will store 96 DCO calibrations in info segments B, C, and D. After these calibrations have been stored it is possible to set the DCO to any frequency from 125 kHz to 16 MHz (128:1 range) with a simple function call... set_dco.c #include static const unsigned * const InfoSegA = (unsigned *)0x10C0; static const unsigned * const InfoSegD = (unsigned *)0x1000; int set_dco(const unsigned f) // Set DCO to specified frequency in kHz {
6 points
47. ## Solar water heating controller

I wanted to try out myself how well solar energy really works. Toward this aim I built a solar collector system for waterheating. A small boiler with a heat exchanger is used for heat storage and a ordinary heating pump for the water circulation. Temperature is measured at the collector, at the entrance and outlet of the heat exchanger and inside the heat storage boiler. As a controller for the pump I used an MSP430 launchpad. There were several problems I had to solve. First, temperature must be measured with a resolution of at least 1 degree. My preferred temperature sen
6 points
48. ## Setting up the DCO properly

That is very similar to what I see with the Fraunchpad (MSP430FR5739). I can't get the scope to really sync well. The G series chips seem reasonably stable. This is a G2553 with these settings for DCO: DCOCTL 0x00 BCSCTL1 0x87 BCSCTL2 0x00 BCSCTL3 0x05 Looks like about +/- 3 ns jitter. With the modulator set to 7, there are clearly two different clock periods in use. 16 MHz factory calibration.
6 points
49. ## Connector for 2013 target board with staples

In case somebody want to use that Launchpad's feature I made the connector with some 26/6 staples
6 points
50. ## Cheap C2000 Piccolo: F2806x MCU - \$11

Hi all, Browsing through DangerousPrototypes blog today, I saw Ian posted some info about TI's floating-point Piccolo MCUs. Texas Instruments has development boards with F28069 in memory stick form factor on promotion now (\$11 if using the promo code Piccolo11 at checkout). It seems those Piccolo MCUs have far more capabilities than I'll ever use in my simplistic projects, but there are a lot of clever people in this forum who may find it useful You can see and order the dev board here: https://estore.ti.com/TMDX28069USB-F28069-Piccolo-controlSTICK-P2257C43.aspx?DCMP=F2806x&
6 points
×
• Blog

• #### Activity

×
• Create New...