Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 25th November 2007, 03:55 AM   (permalink)
Thumbs up Junebug users - another fun little project

A simple POV display for Junebug 18F1320.
Quote:
A "persistence of vision display" (POV display) has only a single line of LEDs blinking on and off. The display mechanically sweeps it across a person's field of view, giving the illusion of a 2D display.
Here's a not-so-good pic of it in action. It's just printing "FUTZ" over and over. When the Junebug is moving one direction the text is correct. When it goes the other direction the text is backward. It's far from perfect, but does kind of work.

The multiplexing could probably be fine tuned to make a brighter display.

It's best to use a battery and wave the thing in a dark room, rather than risking damage with the Junebug on the USB cable. I used a 9V battery connected direct which is probably a very bad idea, but it hasn't cooked the Junebug yet. A fresh battery might be bad.

Here's a pic of my font designing notes. The code has 12 letters at present. I wanted it to be able to display JUNEBUG and FUTZ. Make your own from there.

Download source and hex file. Have fun!

EDIT: Whoops! Found an error in the code. It shouldn't even have worked the way it was, but accidently did. The download has been updated.
Was:
Code:
main	movlw	lettF
	call	letter
	movlw	lettU
	call	letter
	movlw	lettT
	call	letter
	movlw	lettZ
	call	letter
	return
Obviously the last line should have been:
Code:
	goto	main

Last edited by futz; 25th November 2007 at 12:19 PM.
futz is online now  
Old 25th November 2007, 06:29 AM   (permalink)
Default

That's awesome Love it.
A $1 6V camera battery might be kinder to the PICs.
Some NiMH 9V are only 7.2V and a simple 1N4001 diode would put it closer to slightly abused specs. Original PICs were designed for 7V the 1650
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 26th November 2007, 04:27 PM   (permalink)
Default

Futz have you ever worked with iButtons / 1Wire devices?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 26th November 2007, 04:31 PM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
Futz have you ever worked with iButtons / 1Wire devices?
Nope. A few years back I tried to get that working and had no success. It was just around when I lost interest in mcu's and electronics for a few years. Now that I'm tinkering with this stuff again I plan to try again very soon.

Last edited by futz; 26th November 2007 at 04:43 PM.
futz is online now  
Old 26th November 2007, 05:31 PM   (permalink)
Default

That little connector under the reset button was designed with the DS18S20 in mind, even the pullup is there.
Kyle-s4H did some iButton programming for the Firefly.

Here's another interesting project that should be easy to do.
http://www.jdm.homepage.dk/solarpic.htm

Or this
http://www.sixca.com/eng/articles/remote/index.html
Note: the 12F629 doesn't need the crystal for this application.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 26th November 2007 at 06:18 PM.
blueroomelectronics is online now  
Old 26th November 2007, 10:07 PM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
That little connector under the reset button was designed with the DS18S20 in mind, even the pullup is there.
DS18B20 close enough? I have one coming in my Spark Fun order.

I've got both data sheets here and they look real similar.

I need to get SPI working on the Junebug too, but that's almost as easy as asynchronous serial. I designed and built several 7-seg 4-digit LED displays a while back that use the MAX7219 chips.
futz is online now  
Old 26th November 2007, 10:25 PM   (permalink)
Default

There is no hardware SPI on the 18F1320 so it would be all bit banged. The DS18B20 and 18S20 are similar, I can't recall the differences off the top of my head. There is also a PAR version.
Of course you could use a thermistor in the same socket.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 26th November 2007, 11:13 PM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
There is no hardware SPI on the 18F1320 so it would be all bit banged.
I think it does. It's called Synchronous Mode. Looking at the datasheet I see master and slave synchronous modes available.

Quote:
Of course you could use a thermistor in the same socket.
I have one of those too.
futz is online now  
Old 26th November 2007, 11:42 PM   (permalink)
Default

I don't see a SSP or MSSP in the datasheet. There is a synchronus serial port but that's not SPI, that really fast serial.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 26th November 2007, 11:48 PM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
I don't see a SSP or MSSP in the datasheet. There is a synchronus serial port but that's not SPI, that really fast serial.
Maybe that's why I had trouble making it work before.
futz is online now  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Junebug users - fun little diag program for ya futz Micro Controllers 15 29th November 2007 03:29 AM
Uni Project Advice 2-tone Electronic Projects Design/Ideas/Reviews 7 18th October 2007 01:11 AM
My professor screwed my final electronics project! kungfusansu Electronic Projects Design/Ideas/Reviews 21 26th August 2007 10:57 PM
FINAL YEAR PROJECT! erique82 Electronic Projects Design/Ideas/Reviews 18 15th April 2007 11:09 AM
A Microcontroller based Analogue Waveforms Analyzer Project km Electronic Projects Design/Ideas/Reviews 76 30th June 2004 07:40 PM



All times are GMT. The time now is 03:26 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker