February 29
Junebug.bas module updated
A forum member at
Electro Tech Online has added a
Swordfish BASIC keypad module for the Junebugs tutor.
Copy
Junebug.bas to your Swordfish
module directory.
Here's a demo program
that uses the module.
{
* Name : BLINK_1.BAS
* Author : William Richardson, Mike Webb
* Date : 2/29/2008
* Version : 1.0
}
Device
= 18F1320
Clock
= 4
// 4MHz
clock
Include
"junebug.bas"
Dim
Keys As Byte,Lit
As Byte
While True
Keys=ReadKeys
//get the
key value
If
Keys<>0 Then
//any key pressed?
Lit=Lit And
1 Xor 1
//keep bottom bit and toggle it
Keys=Keys-1<<1
//keys = 0,2 or 4
Lit=Lit+Keys
//combine them
EndIf
LED(Lit+1)
//turn on
the LED
DelayMS(10)
//
delay in 1000s of a second
Wend
// repeat forever
End
February 23
Ladybug update
Well I've been
tweaking the design to get it just right, with lots of help from the
Electro-Tech-Online & Microchip forums it should be ready for layout
this Sunday.
One of the tested
updates was moving the relays off the SPI bus (now they're on PORTD)
and putting the LCD on the SPI bus using a 74HC164.

Ladybug's SPI based
LCD & Keypad schematic
February 12
Ladybug development full steam ahead
I'm prototyping an 8
relay & 8 opto version using a 74HCT595 as an I/O expander. Also
looking at HCPL2601 opto isolators for 4 of the opto inputs. Ladybug
is quickly becoming a PLC, nice thing about it being a kit is you
can build it your way.
February 8
Ladybug Ethernet I/O controller nearing production
Here's an early
preview of the Ladybug schematic.
Highlights include
-
PIC18F4620 @
9.8MIPs
-
ENC28J60 Ethernet
controller
-
64KB EEPROM for
web page storage
-
8 Relay I/O can be
combination of Relay, Digital I/O, Analog or
1-wire
-
4 Opto I/O can be
Opto input, Opto output, Digital I/O or
1-wire
-
RS232 port
or
XBee wireless (hardware USART)
-
RS485 port
(software USART)
-
LCD connector
-
4x3 keypad
connector

Click on the image to enlarge.