Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Do we have lift off?
Author | Message | ||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
Do we have lift off? We are on the pad, and waiting for the main engine to ignite! OK, this is a mock up of a Maximite EV board with a DonDuino Cross mounted on top, and an Ebay $16 LCD (including postage) Arduino shield sitting on top. Mick is just writing the software to make it tick as we speak. and some more: And a pair: I'll let you know when we get them going. Cheers Don... https://www.dontronics.com |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
As Mick said, "Who's a pretty boy"? Here is is shown sitting on top of a case with the cable entry from the rear of the DonDuino Cross. And the code. [code] 10 GOSUB 11000 ' Initialise the LCD 20 LCD_line1$ = " *Dontronics* " 30 LCD_line2$ = " DonDuino Cross " 40 GOSUB 12000 ' send to the LCD 50 END 60 ' 70 ' 80 ' 10000 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''' 10010 ' LCD driver for standard 16 x 2 LCDs 10020 ' Originally by Geoff Graham, March 2011, for Arduino by Mick Gulovsen July 2011 10030 ' 10040 ' For example: futurlec.com LCD16X2 10050 ' altronics.com.au Z7001 10060 ' jaycar.com.au QP5512 10070 ' 10080 ' To use: 10090 ' - execute GOSUB 11000 to initialise display 10100 ' - then load the text strings into the 10110 ' variablesLCD_line1$ and LCD_line2$ 10120 ' - execute GOSUB 12000 to display the text 10130 ' 10140 ' See the file lcd.pdf for the schematic. 10150 ' Maximite pin 19 is RS, pin 20 is EN 10160 ' pins 15 to 18 are D4 to D7. R/W is grounded 10180 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''' 10190 ' 10200 ' 11000 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''' 11010 ' Initialise the LCD 11020 ' 11030 FOR i=15 TO 20: SETPIN i,8 : NEXT i 11040 _LCD_byte = &B0011 : GOSUB 13090 : PAUSE 5 ' reset 11050 _LCD_byte = &B0011 : GOSUB 13090 : PAUSE 5 ' reset 11060 _LCD_byte = &B0011 : GOSUB 13090 : PAUSE 5 ' reset 11070 _LCD_byte = &B0010 : GOSUB 13090 : PAUSE 2 ' 4 bit mode 11080 _LCD_byte = &B00101100 : GOSUB 13000 ' 4 bit, 2 lines 11090 _LCD_byte = &B00001100 : GOSUB 13000 ' display on, no cursor 11100 _LCD_byte = &B00000110 : GOSUB 13000 ' increment on write 11110 _LCD_byte = &B00000001 : GOSUB 13000 ' clear display 11120 RETURN 11130 ' 11140 ' 12000 ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''' 12010 ' send the two lines to the LCD 12020 ' the text is in LCD_Line1$ and LCD_Line2$ 12030 ' 12040 _LCD_byte = &H80 : GOSUB 13000 ' select the 1st line 12050 FOR _LCD = 1 TO 16 12060 _LCD_byte = ASC(MID$(LCD_Line1$, _LCD, 1)) 12070 PIN(19) = 1 : GOSUB 13000 ' send the character 12080 NEXT _LCD 12090 _LCD_byte = &B11000000 : GOSUB 13000 ' select the 2nd line 12100 FOR _LCD = 1 TO 16 12110 _LCD_byte = ASC(MID$(LCD_Line2$, _LCD, 1)) 12120 PIN(19) = 1 : GOSUB 13000 ' send the character 12130 NEXT _LCD 12140 RETURN 12150 ' 12160 ' 13000 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''' 13010 ' Send a byte to the LCD 13020 ' the data to be sent is in _LCD_byte 13030 ' 13040 PIN(15) = _LCD_byte AND &B00010000 ' output the 1st 4 bits 13050 PIN(16) = _LCD_byte AND &B00100000 13060 PIN(17) = _LCD_byte AND &B01000000 13070 PIN(18) = _LCD_byte AND &B10000000 13080 PIN(20) = 1 : pause 1:PIN(20) = 0 : pause 1 ' tell lcd to accept data 13090 ' Entry point to send just 4 bits to the LCD 13100 PIN(15) = _LCD_byte AND &B00000001 ' output the 2nd 4 bits 13110 PIN(16) = _LCD_byte AND &B00000010 13120 PIN(17) = _LCD_byte AND &B00000100 13130 PIN(18) = _LCD_byte AND &B00001000 13140 PIN(20) = 1 : pause 1: PIN(20) = 0 : pause 1: PIN(19) = 0 : pause 5 ' tell lcd to accept data 13150 RETURN [/code] We have a Maximite, running via a DonDuino Cross, to an eBay Arduino shield. Mick is now working on the switches. He has most of them figured out. Cheers Don... https://www.dontronics.com |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
Mick just found the schematic of the LCD: http://www.nuelectronics.com/estore/index.php?main_page=proj ect_lcd Cheers Don... https://www.dontronics.com |
||||
VK6MRG Guru Joined: 08/06/2011 Location: AustraliaPosts: 347 |
WOW, looks good. Its easier to ask forgiveness than to seek permission! ............VK6MRG.............VK3MGR............ |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
hey don micro sd cards fom office works 12 bucks oh think they said 2gig regards sparkey they have larger technicians do it with least resistance |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
a`hh litle confused on what this is ///i gather "in old term`s"it is an expansion buss....or am i totally wrong...or is this what we might call the daisy chain ..... technicians do it with least resistance |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
Hi Sparkey, I think we have been talking in depth about Arduino shields for about 3 to 4 weeks on this forum. Have a read of this: http://www.themaximitecomputer.com/the-donduino-cross/ and this: http://www.dontronics-shop.com/the-donduino-cross.html and the links from here: http://www.arduino.cc/en/Main/ArduinoShields and here: http://shieldlist.org/ that will give you a little idea of the potential of the shield system, and how it can complement the Maximite. Cheers Don... https://www.dontronics.com |
||||
VK6MRG Guru Joined: 08/06/2011 Location: AustraliaPosts: 347 |
Don, do you have an enclosure that would suit the Maximite EV with an expansion board on top? Its easier to ask forgiveness than to seek permission! ............VK6MRG.............VK3MGR............ |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
Sorry Matthew, I don't. This is much like any Arduino shield now. Most of them are home grown stacks and you would need to sort out a jiffy box to house it. Cheers Don... https://www.dontronics.com |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Hi Don Recieved the DonDuino boards today as expected they look great Will put one together and post results I have a shield comming so I can test John |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
Great, thanks for the feed back John, I figure this should make the add on Arduino shields dead easy for the Maximite. Cheers Don... https://www.dontronics.com |
||||
Print this page |