-
Content Count
255 -
Joined
-
Last visited
-
Days Won
2
Reputation Activity
-
chibiace reacted to RobG in 3V LaunchPad
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.
-
chibiace reacted to larsie in 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 for it so far, and it works ok. I guess with an HW-driver it'll be updating faster. I'll see if maybe it can be tweaked onto the USCI peripheral by sending 2 bytes.
The features are:
- small (34 x 30 mm physical size. Viewing area 28x19)
- 3-line SPI 9-bit (Driver Sitronix ST7579-G2)
- low power
- backlight
- black and white LCD
- approx 3 USD cost
I made a watch with the earlier LCD display (i2c-version) I was using. Here's a picture. The SPI-display is slightly smaller, but the display quality is similar (slightly better on the SPI display). I will have 250 of these, so if anyone is interested in this display for projects, let me know. I'm planning on making some packs that are finished soldered and can be sold in the shop, but it's relatively easy to solder these displays onto a board for your own projects also.
So I'm planning on making a watch-board for the new display. It'll have the display soldered onto one side. The other side will have space for example for a MSP430G2452. The design will be open source. Any suggestions to peripherals and buttons? I could put an accelerometer there, for example to detect taps on the display. I guess I could also put a radio in it???
Edit: Have changed the picture file to a newer version.
-
chibiace reacted to bluehash in LP screw terminal power connector
Sweato.. blogging this.
i must look into this and try it out. Probably get the smaller ones(in bulk) and offer it in the Store.
-
chibiace got a reaction from oetroc in LP screw terminal power connector
I needed something to test my lm2576 3.3v switch mode power supply that i had built the other day, so i desoldered the male headers at the bottom of the launchpad and slotted in a cheap 2 way screw terminal.
there is a tiny bit of over hang and only G G V are visible on the silkscreen but that is alright for me.
im sure to use this for battery hookup in the future.
if those 0.1" screw terminals weren't so damned expensive i would replace all of the other female headers with them. :twisted:
-
chibiace got a reaction from dacoffey in LP screw terminal power connector
I needed something to test my lm2576 3.3v switch mode power supply that i had built the other day, so i desoldered the male headers at the bottom of the launchpad and slotted in a cheap 2 way screw terminal.
there is a tiny bit of over hang and only G G V are visible on the silkscreen but that is alright for me.
im sure to use this for battery hookup in the future.
if those 0.1" screw terminals weren't so damned expensive i would replace all of the other female headers with them. :twisted:
-
chibiace got a reaction from timotet in LP screw terminal power connector
I needed something to test my lm2576 3.3v switch mode power supply that i had built the other day, so i desoldered the male headers at the bottom of the launchpad and slotted in a cheap 2 way screw terminal.
there is a tiny bit of over hang and only G G V are visible on the silkscreen but that is alright for me.
im sure to use this for battery hookup in the future.
if those 0.1" screw terminals weren't so damned expensive i would replace all of the other female headers with them. :twisted:
-
chibiace got a reaction from bluehash in LP screw terminal power connector
I needed something to test my lm2576 3.3v switch mode power supply that i had built the other day, so i desoldered the male headers at the bottom of the launchpad and slotted in a cheap 2 way screw terminal.
there is a tiny bit of over hang and only G G V are visible on the silkscreen but that is alright for me.
im sure to use this for battery hookup in the future.
if those 0.1" screw terminals weren't so damned expensive i would replace all of the other female headers with them. :twisted:
-
chibiace got a reaction from turd in LP screw terminal power connector
I needed something to test my lm2576 3.3v switch mode power supply that i had built the other day, so i desoldered the male headers at the bottom of the launchpad and slotted in a cheap 2 way screw terminal.
there is a tiny bit of over hang and only G G V are visible on the silkscreen but that is alright for me.
im sure to use this for battery hookup in the future.
if those 0.1" screw terminals weren't so damned expensive i would replace all of the other female headers with them. :twisted:
-
chibiace got a reaction from N3TL0@D3R in Neewbie line code question
have a look at the file, it defines quite a bit of stuff. while its always best to have the matching header a lot of the functionality is the same for the range and you can get away with a similar chip like the msp430g2001. or the f series.
on my linux box the header is also calling for these:
#include
#include
#include
#include
#include
#include
-
chibiace reacted to tocs in Am I using the crystal?
I have written some code and it is not working as I expected. It is trouble with timers and clocks. I working towards building a little analog clock using the msp430 as a motor driver. The code I have here is sort of a small first step.
I am using the Launchpad platform and gcc. The crystal that came with the launchpad has been soldered on and I used some test code found at Justin's Tech to test the crystal and it is working (the led blinked of and on).
It is supposed to blink the led on P1.6 every 10 seconds and when the user defined button on the Launchpad is pressed reset Timer A and start counting again. It works ok but but is running about a second fast every couple hours. I am sort of at a loss as to why.
Here is the line of code that I am using to set BCSCTL3. Am I doing this rightt?
BCSCTL3 |= XT2S_0 + LFXT1S_0 +XCAP_3; // clock range + 32768 crystal + xtal has 12.5 pF caps
Here is the whole listing:
#include #include #define BUTTON BIT3 #define TRIGGER 32764 // ACLK clock freq. int count = 0; // keep track of number of seconds elapsed interrupt(PORT1_VECTOR) PORT_1(void) { P1IFG &= ~BUTTON; // clear interrupt flag P1OUT ^= BIT0; // toggle LED on P1.0 TACTL |= TACLR; // clear counter to start from 0 count = 0; } interrupt (TIMERA0_VECTOR) ta_handler() { if (count == 4) { // count to 5 (* 2 sec) P1OUT ^= BIT6 ; // toggle LED on P1.0 count = 0; } else {count++;} } int main(void) { WDTCTL = WDTPW + WDTHOLD; // disable watchdog P1OUT = 0; // initialize LED off P1DIR = BIT0 + BIT6; // P1.0 output // configure button P1REN |= BUTTON; // enable internal pullup P1OUT |= BUTTON; // set pullup P1IES |= BUTTON; // high to low P1IFG &= ~BUTTON; // clear interrupt flag P1IE |= BUTTON; // enable interrupt // configure clock BCSCTL3 |= XT2S_0 + LFXT1S_0 +XCAP_3; // clock range + 32768 crystal + xtal has 12.5 pF caps TACCR0 = TRIGGER; // count to TACCTL0 |= CCIE; // Enable timer A intetrupt TACTL = TASSEL_1 + ID_1+ MC_1 + TACLR; // ACLK + Div 2 + Up Mode + Clear timer P1OUT ^= BIT0; // toggle LED on P1.0 __bis_SR_register(LPM0_bits + GIE); // enable global interrupts & go into low-power mode for (; { } } // main
Thank you for any help.
Gary
-
chibiace reacted to Faraday in WIZnet W5100 Ethernet?
I have used the Lantronix xPort to provide ethernet access for my project. Not cheap though ($30)
-
chibiace reacted to RobG in PxOUT all outputs at once?
You can define binary type, see attached include file.
Then you could do P1OUT = b11110011;
binary.h.zip
-
chibiace got a reaction from turd in Noobie needs example code :) (mspgcc/Linux)
take a look at:
http://hackaday.com/2010/08/11/how-to-launchpad-programming-with-linux/
http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_(MSP-EXP430G2)#Download_all_MSP430G2xx_code_examples
get a make file and your program usually main.c, edit up your code.
1. make
2. sudo mspdebug rf2500 'prog main.elf'
here is a little something i made for use as a template:
main.c
#include "signal.h" #include "io.h" void delay(register unsigned int t) {register unsigned int i; for (i = 0; i < t*100; i++){}} void main(){ WDTCTL = WDTPW + WDTHOLD; // Turn off watchdog timer. P1DIR |= BIT0+BIT6; // Set P1.0 & P1.6 as output. int a=0; while (a==0){ // Loop P1OUT |= BIT0+BIT6; // Turn P1.0 & P1.6 on. delay(100); P1OUT &= ~BIT0+BIT6; // Turn P1.0 & P1.6 off. delay(100); }}
and Makefile
CC=msp430-gcc CFLAGS=-Os -Wall -g -mmcu=msp430x2012 OBJS=main.o all: $(OBJS) $(CC) $(CFLAGS) -o main.elf $(OBJS) %.o: %.c $(CC) $(CFLAGS) -c $< clean: rm -fr main.elf $(OBJS)
-
chibiace got a reaction from bluehash in Noobie needs example code :) (mspgcc/Linux)
take a look at:
http://hackaday.com/2010/08/11/how-to-launchpad-programming-with-linux/
http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_(MSP-EXP430G2)#Download_all_MSP430G2xx_code_examples
get a make file and your program usually main.c, edit up your code.
1. make
2. sudo mspdebug rf2500 'prog main.elf'
here is a little something i made for use as a template:
main.c
#include "signal.h" #include "io.h" void delay(register unsigned int t) {register unsigned int i; for (i = 0; i < t*100; i++){}} void main(){ WDTCTL = WDTPW + WDTHOLD; // Turn off watchdog timer. P1DIR |= BIT0+BIT6; // Set P1.0 & P1.6 as output. int a=0; while (a==0){ // Loop P1OUT |= BIT0+BIT6; // Turn P1.0 & P1.6 on. delay(100); P1OUT &= ~BIT0+BIT6; // Turn P1.0 & P1.6 off. delay(100); }}
and Makefile
CC=msp430-gcc CFLAGS=-Os -Wall -g -mmcu=msp430x2012 OBJS=main.o all: $(OBJS) $(CC) $(CFLAGS) -o main.elf $(OBJS) %.o: %.c $(CC) $(CFLAGS) -c $< clean: rm -fr main.elf $(OBJS)
-
chibiace got a reaction from GeekDoc in Launchpad with zif socket
214-3339-00-0602J but i would recommend going with what i hope is a 20pin socket 220-3342-00-0602J check out the US 3m website they have an interesting part finder. btw these say "3M/TEXTOOL" on them.
-
chibiace got a reaction from bluehash in Launchpad with zif socket
214-3339-00-0602J but i would recommend going with what i hope is a 20pin socket 220-3342-00-0602J check out the US 3m website they have an interesting part finder. btw these say "3M/TEXTOOL" on them.
-
chibiace got a reaction from jsolarski in Launchpad with zif socket
heres a photo of a launchpad i soldered a 14pin zif socket to, also originally i had female headers on the side but changed them to male and put them underneath so as to mount on a breadboard.
much faster to program large numbers of chips, now if i only had a 20 pdip socket...
-
chibiace got a reaction from bluehash in Launchpad with zif socket
heres a photo of a launchpad i soldered a 14pin zif socket to, also originally i had female headers on the side but changed them to male and put them underneath so as to mount on a breadboard.
much faster to program large numbers of chips, now if i only had a 20 pdip socket...
-
chibiace got a reaction from RobG in Launchpad with zif socket
heres a photo of a launchpad i soldered a 14pin zif socket to, also originally i had female headers on the side but changed them to male and put them underneath so as to mount on a breadboard.
much faster to program large numbers of chips, now if i only had a 20 pdip socket...