View previous topic :: View next topic |
Author |
Message |
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Jan 20, 2013 5:49 pm Post subject: 7 inch display board |
|
|
With:
WIZFI210 Wireless network
ITRAX300 GPS
BTM220 Class 1 bluetooth
Bluegiga WT41 1 kilometer bluetooth
SCP1000 barometer
DS1338-33 clock with battery backup
RS232
Alvidi AVRB Atxmega128A1 module
7 inch display
FT232RL USB
All details will follow including Bascom-AVR code.
Have fun
Ben Zijlstra
Theo Kleijn
Last edited by bzijlstra on Sun Mar 03, 2013 10:15 am; edited 1 time in total |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Jan 21, 2013 11:34 pm Post subject: |
|
|
it looks excellent Ben. Can't wait to test it
The resolution is remarkable. _________________ Mark |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Tue Jan 22, 2013 7:27 am Post subject: |
|
|
Ben,
it looks like you are soldering and programming in a little Garage with few guys... we all know what will be happen, if you go this way
So they call their work today "Microsoft" or "Apple"
Because of your homeland a name for this can be: "Cheesy-Xmel"
Ben and Theo: you guys rule! Keep on the good work.
Idea for next Version: Vinculum VCP-1
I've to spend time on VCP-1, In time i'm using this on serial, but it's also possible to use it with SPI
best, Michael _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Feb 10, 2013 1:37 pm Post subject: 7 inch SSD1963 software... |
|
|
As promised, the Bascom-AVR software.
Made by Six1 and HKipnik.
Including a PDF-file for the 7 inch display and some pictures for the Alvidi on-board SD-card.
Next thing, the DS1338-33 clock running on soft I2c on the Atxmega128.
Have fun
Ben Zijlstra |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Sun Feb 10, 2013 1:59 pm Post subject: |
|
|
ha, this is great Ben. My thanks to HKipnik and Six1 as well.
I see there are some new fonts too _________________ Mark |
|
Back to top |
|
|
Meister
Joined: 27 May 2010 Posts: 319
|
Posted: Sun Feb 10, 2013 2:12 pm Post subject: |
|
|
Looks great!
Could you tell where one can get the modules?
Thanks, Meister |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Feb 10, 2013 3:37 pm Post subject: AVRB - Alvidi... |
|
|
First of all check the Hardware shop of www.mcselec.com
and when not in the shop Google for Alvidi avr_xmodel_v2.0
It is the AVRB version of the module with an Atxmega128A1 and extra 64 Mbit SDRAM.
Have fun
Ben Zijlstra |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Feb 24, 2013 9:14 am Post subject: DS1338-33 clock running |
|
|
Put a DS1338-33 clock IC on the board. It is the 3,3 volts 1307.
Got some help to get soft I2c running, the command $forcesofti2c did the trick. And if you study the history.txt files of the Bascom-AVR updates, you will find this command.
Here a picture of the hardware
And here the software, with on top a little scan to check if the clock can be found on the soft i2c bus
Code: | $regfile = "xm128a1def.dat"
$hwstack = 200
$swstack = 200
$framesize = 500
$crystal = 32000000
Config Osc = Enabled , 32mhzosc = Enabled
Config Sysclock = 32mhz
Config Osc = Disabled , 32mhzosc = Enabled
Osc_pllctrl = &B10_0_00100
Do
Loop Until Osc_status.1 = 1 'Check if RC2MRDY is ready '
'enable PLL
Set Osc_ctrl.4 'PLL enable
'configure the systemclock
Config Sysclock = Pll , Prescalea = 1 , Prescalebc = 1_1 'use PLL
Config Priority = Static , Vector = Application , Lo = Enabled , Med = Enabled
Config Com5 = 57600 , Mode = Asynchroneous , Parity = None , Stopbits = 1 , Databits = 8
Open "COM5:" For Binary As #1
Print #1 , "Start clock"
$forcesofti2c ' with this the software I2C/TWI commands are used when including i2c.lbx
$lib "i2c.lbx" ' override the normal xmega i2c lib
Dim B As Byte
Dim Weekday As Byte
Dim Text As String * 30
Declare Sub Setdate
Declare Sub Settime
Declare Sub Getdatetime
'We use here Virtual port 0
Config Vport0 = B ' 'map portB to virtual port0
Config Scl = Port0 .3 ' Pin to use as SCL (The hardware pin is Pinb.1)
Config Sda = Port0 .4 ' Pin to use as SDA (The hardware pin is Pinb.0)
I2cinit ' Bring the Pin's in the proper state
Print #1 , "Scan start"
For B = 0 To 254 Step 2 'for all odd addresses
I2cstart 'send start
I2cwbyte B 'send address
If Err = 0 Then 'we got an ack
Print #1 , "Slave at : " ; B ; " hex : " ; Hex(b) ; " bin : " ; Bin(b)
End If
I2cstop 'free bus
Next
Print #1 , "End Scan"
Wait 5 ' Bring the Pin's in the proper state
'DS1338
Const Ds1338w = &HD0 ' Adres van de Ds1338 clock
Const Ds1338r = &HD1
'Clock
Config Clock = User
Config Date = Dmy , Separator = .
$lib "ds1307clock.lib"
'Time$ = "00:07:00"
'Date$ = "24.02.13"
Do
Call Getdatetime
Print #1 , _hour
Print #1 , _min
Wait 5
Loop
End
'called from ds1307clock.lib
'-------------------------------------------------------------------------------
' DS1338 Get date-time routine
'-------------------------------------------------------------------------------
Getdatetime:
I2cstart ' Generate start code
I2cwbyte Ds1338w ' send address
I2cwbyte 0 ' start address in 1338
I2cstart ' Generate start code
I2cwbyte Ds1338r ' send address
I2crbyte _sec , Ack
I2crbyte _min , Ack ' MINUTES
I2crbyte _hour , Ack ' Hours
I2crbyte Weekday , Ack ' Day of Week
I2crbyte _day , Ack ' Day of Month
I2crbyte _month , Ack ' Month of Year
I2crbyte _year , Nack ' Year
I2cstop
_sec = Makedec(_sec) : _min = Makedec(_min) : _hour = Makedec(_hour)
_day = Makedec(_day) : _month = Makedec(_month) : _year = Makedec(_year)
Return
'-------------------------------------------------------------------------------
' DS1338 set date routine
'-------------------------------------------------------------------------------
Setdate:
_day = Makebcd(_day) : _month = Makebcd(_month) : _year = Makebcd(_year)
I2cstart ' Generate start code
I2cwbyte Ds1338w ' send address
I2cwbyte 4 ' starting address in 1338
I2cwbyte _day ' Send Data to SECONDS
I2cwbyte _month ' MINUTES
I2cwbyte _year ' Hours
I2cstop
Return
'-------------------------------------------------------------------------------
' DS1338 set time routine
'-------------------------------------------------------------------------------
Settime:
_sec = Makebcd(_sec) : _min = Makebcd(_min) : _hour = Makebcd(_hour)
I2cstart ' Generate start code
I2cwbyte Ds1338w ' send address
I2cwbyte 0 ' starting address in 1338
I2cwbyte _sec ' Send Data to SECONDS
I2cwbyte _min ' MINUTES
I2cwbyte _hour ' Hours
I2cstop
Return
End |
Have fun
Ben Zijlstra
Theo Kleijn |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Mon Feb 25, 2013 2:54 am Post subject: Wizfi210 and Android on 7 inch board... |
|
|
On youtube, the 7 inch board with a wireless WizFi210 module.
Put online by HKipnik.
http://www.youtube.com/watch?v=3BdFNtNBRlM
Have fun
Ben Zijlstra
Theo Kleijn |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Tue Feb 26, 2013 11:52 pm Post subject: |
|
|
thanks for the clock addition and the link to the udp demo. It is a great demo, i hope the code will be shared as well. wifi makes it very versatile. I can think of many practical applications. _________________ Mark |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Mar 03, 2013 10:13 am Post subject: WizFi210 on 7 inch board |
|
|
HKipnik made an example how to make an UDP connection between the 7 inch display board and a Android SmartPhone.
Here some pictures of the WizFi210 with a DIY-antenna.
Antenna, 31 mm, with an cap.
Antenna, shrinked
The WIZFI210
The WIZFI210 in detail
To configure the WIZFI210 with WPA or WEP key, with DHCP or fixed IP and to have it auto-connect a level converter
RS232 from PC straight to the WIZFI210
Details later.
Have fun
Ben Zijlstra
Theo Kleijn |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Mar 03, 2013 10:36 am Post subject: Configure the WIZFI210 |
|
|
Download the WIZSmartScript from the Wiznet site
The ZIP-file extracted
Start the WIZSmartScript program, baudrate 115200
Find WizFI and Set Command Mode
Do an Access Point scan and select the Access Point to associate with
Select the WiFi security. In this case WPA with the Passphrase 'wisclub1'
Give the module a static IP address (or if you want, give it a DHCP IP address)
Here you can change the Serial port options
For this example we will be using UDP traffic to a PC in our network that has the IP address 192.168.0.237 listening to port 5000
Select an save option. Here you create an startup profile for the WizFi210 module.
You enable auto connect on the next reboot and enable UART messages.
We saved it with the name benshobbycorner and here an example of a script.
More details later...
Have fun
Ben Zijlstra
Theo Kleijn |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Tue Mar 05, 2013 8:18 pm Post subject: Self supporting RS232... |
|
|
Tried it and it works....
With a not programmed Atxmega128A1. Remove all four jumpers of the Alvidi module (RS232). The MAX3232 on the module will be isolated. Connect the TXD1 and RXD1 from the WIZFI210 to the second RS232 of the Alvidi module. Connect a terminal program, 115200 baud and power the board. If all is connected right you will get the information from the WIZFI210. Start the WizSmartScript and there you go.
Have fun
Ben Zijlstra
Theo Kleijn |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Tue Mar 05, 2013 8:46 pm Post subject: Bascom, Android and Wireless |
|
|
For the next part, Bascom, Android and Wireless, all credit goes to HKipnik alias HKBascom alias Heiko.
First some pictures:
In this example the WIZFI210 has got IP-address 192.168.0.250
And my Samsung Galaxy Note II has IP-address 192.168.0.237
Port 5000 is used to send UDP-traffic from the 7 inch display board to the Android SmartPhone.
Port 8000 is used to send UDP-traffic from SmartPhone to 7 inch display.
All wireless.
Have fun
Ben Zijlstra
Theo Kleijn |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Tue Mar 05, 2013 9:16 pm Post subject: Software for SmartPhone and for display board |
|
|
Here the software for the 7 inch display board and for the Android Smartphone.
The first in Bascom-AVR and the second in Basic4Android.
In the subdirectory bilder, the images
In the subdirectory wizfi210 a small testprogram and some more info we got from Heiko.
What we did change was the touchscreen routine. We left the old one from Heiko remarked, and put in our own routine.
Seems there are different displays with different touchscreens.
Have fun
Ben Zijlstra
Theo Kleijn
We have updated the 7inch_wizfi210.zip, it was not complete. |
|
Back to top |
|
|
|