Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

E-Ink display with bluetooth

$
0
0

Hello!

 

The target of my project is to build an E-Ink display controlled via bluetooth (picture uploading, changing displayed picture) using 4.4" E-Ink display http://www.densipaper.com/product/et044as013-mpkit-01

 

I am not new to programming, but when it comes to microcontrollers I am a complete beginner. So I've decided to try and develop something first with the TI Launchpad and 2.7" display http://www.densipaper.com/product/em027as012-tikit-01 and then port it to a bigger one.

 

So far, I have written my own android app using MIT app inventor 2 and I am able to send single bytes via bluetooth to my bluetooth module KAmodBTM222 http://www.kamami.pl/index.php?productID=137699 which is connected to the launchpad. The code in MSP430 is modified default EPD code <i_will_insert_link_here>.

#include "Pervasive_Displays_small_EPD.h"
#include "image_data.h"

void init(){
    BCSCTL1 = CALBC1_16MHZ;
    DCOCTL = CALDCO_16MHZ;

    P1SEL = BIT1 | BIT2 ;
    P1SEL2 = BIT1 | BIT2;
    P1DIR |= 0x01;
    P1SEL = BIT1 | BIT2 ;
    P1SEL2 = BIT1 | BIT2;
    UCA0CTL1 = UCSWRST;
    UCA0CTL1 |= UCSSEL_2;                    
    UCA0BR0 = 131;                          
    UCA0BR1 = 6;                              
    										
    UCA0MCTL = UCBRS1 + UCBRS0;               
    UCA0CTL1 &= ~UCSWRST;
    IE2 |= UCA0RXIE;
    __bis_SR_register(GIE);
}

int main(void) {
	WDTCTL = WDTPW + WDTHOLD;
	init();

	for(;;) {
		EPD_display_from_pointer(EPD_270,(uint8_t *)&image_array_270_2,(uint8_t *)&image_array_270_1);
		init();
		delay_ms(9000);

		EPD_display_from_pointer(EPD_270,(uint8_t *)&image_array_270_1,(uint8_t *)&image_array_270_2);
		init();
		delay_ms(9000);
	}
}

#pragma vector=USCIAB0RX_VECTOR
__interrupt void USCI0RX_ISR(void){
		if (UCA0RXBUF == 'A'){
			P1OUT ^= 0x01;
		}
		else {
			P1OUT ^= 0x01;
		}

		IFG2 = IFG2 & 0x0A;
}

So that's what I was able to develop by myself - blink the LED via bluetooth while images are changing on the display. Now I've got a few questions to you guys! :) I wasn't able to find answers although I have searched thoroughly.

 

1. What is the proper way to handle RX input in the code? I want to be able to receive a whole picture 264 x 176 via bluetooth and display it on my E-Ink display. Right now I am able to handle single bytes and I've got a feeling I am doing this wrong...

2. Are there any similar projects for 4.4" or any EPD displays? If so, please post some links, maybe I can be inspired by them. :)

3. Will my MSP430G2553 be even able to handle both code and 400 x 300 pictures with its 16kb memory?

4. I have also thought about external memory. Would FLASH/FRAM/EEPROM be useful in this project?

5. How do you read/write to external memory? For example, how to write an array of chars and read it later?

 

I will be posting any progress and will keep this thread updated. I am excited to read your responses!

 

Greetings

Wbicu

Attached Thumbnails

  • eink.jpg

Viewing all articles
Browse latest Browse all 2077

Trending Articles