irc for YBox2- Project

Talk about YBoxen, widgets, Propeller hacking, etc!

Moderators: adafruit_support_bill, adafruit

irc for YBox2- Project

Postby justamar » Mon May 04, 2009 9:40 pm

Hello there, for the past couple of weeks I was thinking of a way to create a product that can show an IRC chat room. So when i was reading Limor's blog today I saw that there was a VGA output made for the YBox2! Well imediatly I thought of the irc channel that I wanted to make, this is my first programming project, and I know that its going to be a big one, does anyone have any advice or ideas out there?
MEEP BLEEP BOOP
justamar
 
Posts: 45
Joined: Thu Dec 11, 2008 2:37 am

Re: irc for YBox2- Project

Postby adafruit » Mon May 04, 2009 9:43 pm

its definately a good idea and shouldnt be -too- hard
first off, google in case someone's done it first! :) check the propeller forums too
you'll need to connect a ps/2 keyboard up. see the propeller demo board schematic
then you will have to connect the irc server and parse out the codes to make it look pretty
but thats pretty much it
User avatar
adafruit
 
Posts: 10547
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: irc for YBox2- Project

Postby adafruit » Mon May 04, 2009 9:44 pm

User avatar
adafruit
 
Posts: 10547
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: irc for YBox2- Project

Postby justamar » Mon May 04, 2009 9:58 pm

I just cried a little bit :[ I guess I can just use PropIRC although I want to find a way to add the PS/2 controller into the YBox2! i will be looking his schematic and changing it to my needs, and I just ordered the PCB for the YBox2. yay me.
MEEP BLEEP BOOP
justamar
 
Posts: 45
Joined: Thu Dec 11, 2008 2:37 am

Re: irc for YBox2- Project

Postby adafruit » Tue May 05, 2009 12:30 am

i just did it, its pretty easy. dont forget you'll also need a lot of parts and a propeller programmer of some sort.
User avatar
adafruit
 
Posts: 10547
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: irc for YBox2- Project

Postby justamar » Tue May 05, 2009 12:45 am

a propeller programmer? i though they come preprogrammed :[ fadge.i guess i should have ordered the full kit and not just the board :wink: haha wait a second Can i not use the bootloader if i get the propeller from http://www.parallax.com/Store/Microcontrollers/PropellerChips/tabid/142/CategoryID/18/List/0/Level/a/ProductID/332/Default.aspx?SortField=ProductName,ProductName
MEEP BLEEP BOOP
justamar
 
Posts: 45
Joined: Thu Dec 11, 2008 2:37 am

Re: irc for YBox2- Project

Postby Abysmal » Tue May 05, 2009 6:52 am

justamar wrote:a propeller programmer? i though they come preprogrammed :[ fadge.i guess i should have ordered the full kit and not just the board :wink: haha wait a second Can i not use the bootloader if i get the propeller from http://www.parallax.com/Store/Microcontrollers/PropellerChips/tabid/142/CategoryID/18/List/0/Level/a/ProductID/332/Default.aspx?SortField=ProductName,ProductName


Actually you can if your code is clean enough.. If you build your own make sure you get a programmer, you'll need it..
User avatar
Abysmal
 
Posts: 46
Joined: Sun Apr 12, 2009 10:52 pm
Location: Toronto Canada

Re: irc for YBox2- Project

Postby adafruit » Tue May 05, 2009 11:48 am

well first off its not the propeller chip thats programmed, its the eeprom. so you can use an i2c eeprom programmer
OR a propeller programmer (which really just tells the propeller to program the eeprom)

http://www.ladyada.net/make/ybox2/parts.html
"64KB i2c EEPROM, preprogrammed with bootloader when purchased in a kit"
User avatar
adafruit
 
Posts: 10547
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: irc for YBox2- Project

Postby adafruit » Wed May 06, 2009 9:59 am

attached is the 'new' propirc.spin (renamed to .txt) with mods to make it ybox2 'compatible'
this version still requires VGA and ps/2 connectors
but the ethernet stuff works just fine
would be ++ if someone could help port this to NTSC
Attachments
propirc.txt
(22.98 KiB) Downloaded 134 times
User avatar
adafruit
 
Posts: 10547
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: irc for YBox2- Project

Postby Abysmal » Wed May 06, 2009 11:57 am

ladyada wrote:attached is the 'new' propirc.spin (renamed to .txt) with mods to make it ybox2 'compatible'
this version still requires VGA and ps/2 connectors
but the ethernet stuff works just fine
would be ++ if someone could help port this to NTSC


You mean to the TV Out code, and if so what size do you want the 40x30?

k.
User avatar
Abysmal
 
Posts: 46
Joined: Sun Apr 12, 2009 10:52 pm
Location: Toronto Canada

Re: irc for YBox2- Project

Postby harrison » Wed May 06, 2009 12:49 pm

ladyada wrote:attached is the 'new' propirc.spin (renamed to .txt) with mods to make it ybox2 'compatible'


There was a typo in the contest version of propirc which broke the 25MHz freq generator. I didn't catch it until I tried to run the stack on the ybox2...

To fix it, open up driver_enc28j60.spin and change:
Code: Select all
enc_freq = 5_000_000

to
Code: Select all
enc_freq = 25_000_000


After fixing that you should be able to run the code with minimal changes (you don't have to disable the webserver or the software rtc).
harrison
 
Posts: 8
Joined: Mon Jun 09, 2008 2:55 am
Location: Texas

Re: irc for YBox2- Project

Postby Abysmal » Wed May 06, 2009 1:35 pm

Harrison.. Glad to see you here too..
User avatar
Abysmal
 
Posts: 46
Joined: Sun Apr 12, 2009 10:52 pm
Location: Toronto Canada

Re: irc for YBox2- Project

Postby adafruit » Wed May 06, 2009 3:41 pm

Abysmal wrote:
ladyada wrote:attached is the 'new' propirc.spin (renamed to .txt) with mods to make it ybox2 'compatible'
this version still requires VGA and ps/2 connectors
but the ethernet stuff works just fine
would be ++ if someone could help port this to NTSC


You mean to the TV Out code, and if so what size do you want the 40x30?

k.


ya TV out
any size is OK, whatever is easiest.

I'll give $25 adafruit gift certificate to the first person who succeeds! :)
User avatar
adafruit
 
Posts: 10547
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: irc for YBox2- Project

Postby adafruit » Wed May 06, 2009 3:42 pm

harrison wrote:
ladyada wrote:attached is the 'new' propirc.spin (renamed to .txt) with mods to make it ybox2 'compatible'


There was a typo in the contest version of propirc which broke the 25MHz freq generator. I didn't catch it until I tried to run the stack on the ybox2...

To fix it, open up driver_enc28j60.spin and change:
Code: Select all
enc_freq = 5_000_000

to
Code: Select all
enc_freq = 25_000_000


After fixing that you should be able to run the code with minimal changes (you don't have to disable the webserver or the software rtc).


oh ok. to be honest i didnt look in the enc driver and i assumed there were not enough cogs to generate a 25mhz clock (theres a crystal in the schematic posted)

will check it out soon!
User avatar
adafruit
 
Posts: 10547
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: irc for YBox2- Project

Postby Abysmal » Wed May 06, 2009 5:20 pm

ladyada wrote:
harrison wrote:
ladyada wrote:attached is the 'new' propirc.spin (renamed to .txt) with mods to make it ybox2 'compatible'


There was a typo in the contest version of propirc which broke the 25MHz freq generator. I didn't catch it until I tried to run the stack on the ybox2...

To fix it, open up driver_enc28j60.spin and change:
Code: Select all
enc_freq = 5_000_000

to
Code: Select all
enc_freq = 25_000_000


After fixing that you should be able to run the code with minimal changes (you don't have to disable the webserver or the software rtc).


oh ok. to be honest i didnt look in the enc driver and i assumed there were not enough cogs to generate a 25mhz clock (theres a crystal in the schematic posted)

will check it out soon!


The crystal is for the propeller itself.. then nic chip needs a 25 mhz crystal that is simulated via pin 7 on the prop via code..

k.
User avatar
Abysmal
 
Posts: 46
Joined: Sun Apr 12, 2009 10:52 pm
Location: Toronto Canada

Next

Return to YBox2

Who is online

Users browsing this forum: No registered users and 0 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
Android[6]
 
BeagleBone[23]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]