EngIP 31 Posted May 22, 2011 Share Posted May 22, 2011 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; } } NatureTM, Fe2o3Fish and bluehash 3 Quote Link to post Share on other sites
bluehash 1,581 Posted May 23, 2011 Share Posted May 23, 2011 Sweet ans simple. Submit it to the Project of the Month, please Quote Link to post Share on other sites
SugarAddict 227 Posted May 23, 2011 Share Posted May 23, 2011 You could use a laser and reflectors on the fan fins to find the exact timing... Less of a pain and something else to play with. Quote Link to post Share on other sites
rockets4kids 204 Posted May 23, 2011 Share Posted May 23, 2011 What keeps the image in sync? Or do you need to sync your arm to the appropriate frequency? Quote Link to post Share on other sites
Fe2o3Fish 33 Posted May 23, 2011 Share Posted May 23, 2011 @rockets : Given the fixed timing delays between each column I'd say that EngIP has to sync to the right frequency... or some nice harmonic thereof. :-) -Rusty- Quote Link to post Share on other sites
EngIP 31 Posted May 23, 2011 Author Share Posted May 23, 2011 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 . Quote Link to post Share on other sites
zeke 693 Posted May 23, 2011 Share Posted May 23, 2011 You keep it up! You're doing what you love! Jerk know-it-all eight year olds! Get off my lawn! old man> Quote Link to post Share on other sites
zeke 693 Posted May 23, 2011 Share Posted May 23, 2011 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? Quote Link to post Share on other sites
zeke 693 Posted May 23, 2011 Share Posted May 23, 2011 Oh, I just remembered. I saw a POV project where someone mounted it to a spinning bicycle wheel. That might be useful for presenting the project to others. Quote Link to post Share on other sites
bluehash 1,581 Posted May 23, 2011 Share Posted May 23, 2011 EngIp, if you need some parts, let us know. I can look for some in my parts box. EngIP 1 Quote Link to post Share on other sites
EngIP 31 Posted May 23, 2011 Author Share Posted May 23, 2011 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 . 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-) Quote Link to post Share on other sites
EngIP 31 Posted June 10, 2011 Author Share Posted June 10, 2011 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. A few attempts at more than a pretty green face... An attempt at mixing inverse and regular text...Not great About the best picture I managed to get... RobG, zeke, bluehash and 1 other 4 Quote Link to post Share on other sites
bluehash 1,581 Posted June 10, 2011 Share Posted June 10, 2011 Hehe! nice. Quote Link to post Share on other sites
sirri 28 Posted December 2, 2012 Share Posted December 2, 2012 it would be an awesome toy for concerts : ) you can make money with this idea (of course if you can make it veeeery cheap : )) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.