Jump to content
43oh

POV with G2211 and little else


Recommended Posts

Something I was messing about with today - I'm quite pleased with the results :)

 

 

I suppose the next step would be to put it on a PCB and stick it to the fan in the conservatory, but I can see timing it in being a pain in the neck.

 

Code:

#include 		//This is the header file for your chip.

void delay(unsigned int delayTime);


void main(void) {			

  WDTCTL = WDTPW + WDTHOLD;    //Hold the WDT (WatchDog Timer)

  P1DIR = 0xff;				//Set Port 1 (P1) to output.

  unsigned int i=250;			//This is the delay value between each column (found by trial and error)

  while(1){	

  	P1OUT = 0x00;				
  	delay(i);	   			
  	P1OUT = 0x7C;				//Mr GreenFace's first column.
  	delay(i);					//The delay
  	P1OUT = 0x82;				
  	delay(i);
  	P1OUT = 0xA9;
  	delay(i);
  	P1OUT = 0xA1;
  	delay(i);
  	P1OUT = 0xA9;
  	delay(i);
  	P1OUT = 0x82;
  	delay(i);
  	P1OUT = 0x7C;				//Mr GreenFace's last column.
  	delay(i);
  	P1OUT = 0x00;
  	delay(i);

  }

}

void delay(unsigned int delayTime){
int x;
for (x=0;x		x=x*1;
}
}  

Link to post
Share on other sites

bluehash: Thanks, even looking at it now I'm impressed with the simplicity of it, minimal circuit, minimal code, reasonable results. Re: POTM - I haven't done a schematic for the circuit, but if I get one done I'll submit it. The thing is, if I were to submit it, I'd want to refine it first, and I'd end up in a never ending loop of revise, refine, re-appraise.

 

SugarAddict: I have no money for lasers and sensors at the minute, I was even coppering up for the LED's I used in the above video! Speed awareness would add an extra dimension to the project though, and definitely put my coding skills to the test (I suppose I've got to learn timers and interrupts at some point).

 

rockets/rusty: It's all in the arm. The system is quite tolerant though, you don't need a metronome like bicep. I wrote the code, then changed the delay value once (from 500 to 250, so not exactly fine tuned). One of the points of the exercise was to see if I could achieve POV with such a basic set up. I knew I'd got it half right when I showed my 8 year old and he was actually impressed, and not feigning interest like he does with my usual efforts :lol: .

Link to post
Share on other sites

I have a follow up project idea.

 

After you solder your mini-POV to a protoboard, try making a spinning platform for it.

 

Use a variable resistor to alter a PWM output on a second MSP to get the platform spinning at the right POV speed.

 

It's another single function project.

 

What do you think?

Link to post
Share on other sites

Thanks Zeke :)

 

Nice idea with the twin MSP set up, that could work very nicely. I'm going to have to make a Dual Core project soon :lol: .

 

I was considering a spoke mounted display, with a magnet/reed switch to generate the timing pulse. It would be safer than unbalancing the ceiling fan that's for sure! I doubt I'm going to do any more with this in the near future though, I've got too much learning to do, and the concept has been proved to myself. Besides, the wonderful Limor Fried has already done it with more panache than I could ever manage.

 

bluehash - Thank you for the offer, but with my Chronos gathering dust and my 16x2 LCD still in it's original packaging, I can't justify adding to the parts bin just yet, whether gifted or paid for. My sincerest thanks though, it's this kind of behaviour that marks 43oh out as a community rather than just a forum 8-)

Link to post
Share on other sites
  • 3 weeks later...

Just a little update with this "project".

 

I put the circuit on stripboard, a bit easier than frantically swinging a breadboard about in my efforts to impress the wife.

 

circuit.jpg

 

A few attempts at more than a pretty green face...

 

Mike.jpg

 

An attempt at mixing inverse and regular text...Not great

 

inverse.jpg

 

About the best picture I managed to get...

 

43oh.jpg

Link to post
Share on other sites
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...