Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - Scorpia

46
Web platform / Re: Internet radio addin board.
nice ian,

as i have said earlier, i think i would dump the 8io chip in favor of a 16 io one.

and what do you think of audio in as well as audio out?
47
Project development, ideas, and suggestions / Re: NYE POV project?
i dont mind the idea of going to one of the 44 pin 24f series. but I would then make a full smd double sided board. i think one of the 64 pin devices would be overkill

I just did a quick check of the24FJXXXga004 series. seems that they can sink and source 18ma per pin so that should be heaps. (im thinking about 5ish ma per led). and can run down to 2v. Did a quick look at one of the 24h series, looks like they are 4ma per port, not enough im thinking.
either http://ww1.microchip.com/downloads/en/DeviceDoc/39951b.pdf
or
http://ww1.microchip.com/downloads/en/DeviceDoc/39881D.pdf

the issue i see with going down to a 3v battery is the forward voltage drop on the led's. the blue would be cutting it very close.
once the voltage on the battery start to drop then it could get hairy.
Maybe use a 1.5-3v battery and a stepup power supply.

As for the eeprom i have no issue with it as a place to store info. for the size its an easy thing to do.

Do people think that 8 rgb led's is worth pushing for or is 6 or 7 enough?
48
Project development, ideas, and suggestions / Re: NYE POV project?
Well the other thing i was thinking about is changing the crystal to one of the ttl resonators and just using the osc1 pin, freeing up osc2. that would mean we could not use the mclr and still get the 7 rgb led's. I think the longer term goal would be to make it all smd for size. so i think i would like to keep the iscp port for now. but if i went smd would it be better to go to the 18f4550 or another pic and get a full 8 rgb with extra pins free.

Also im a little bit of a loss for what to do with power. not sure if a couple of small button cells would be enough or if 4 AA batteries would be better. or some other option. either way im open for idea's
49
Project development, ideas, and suggestions / Re: NYE POV project?
I had a bit of a go with this tonight.

the schematic isnt finished , its more of a proof of concept.
I have used mostly dip parts for easy of use except for the rgb led's cause i got a few of the smd rgb's from seeed so i was thinking i would use them.
http://www.seeedstudio.com/depot/smt-1206-rgb-120-degree-p-88.html?cPath=32_38
At this stage i am assuming that the pinout of the sparkfun rgb led eagle part i used is the same layout as the seeed one, i still need to check it out to be sure.

I have managed to connect 7 x rgb led's to a pic 18f2550 chip. I have used jumpers to disconnect 1 led from the icsp pins for programming (still not sure if it would work) .

anyway here is draft version 1. If anyone wants to have a go at this then feel free,
Also for ian benefit please take these files as full open source with no restrictions from me.

As allways any comments are welcome
50
Bus Pirate Support / Re: Wii Nunchuck after v4.1 firmware upgrade
i noticed that in your list of commands that the i2c command is echoed onto the line under where you typed it and then the i2c start bit line happens. im wondering if theres something in that.

maybe theres an issue with the terminal program your using.

also try using the slowest setting for the the i2c. About the only other thing i can think of atm is to make sure the nunchuck is a genuine one.
52
Web platform / Re: Internet radio addin board.
One thing i just noticed that worries me a little bit.

On the web board there are 3 spi devices. ethernet, sdcard and eeprom. the eeprom is extened to the header which i was looking to use on the new board. it looks to me like the hardware is setup so that each of these devices has there own set of pins for access to the pic. but the pic only has 2 hardware spi ports to share around .

Would this be an issue trying to stream off all three devices at once? just wondering.
53
Web platform / Re: Internet radio addin board.
I like the idea of a spi lcd, possibly even a color display. but half the reason i went with the expander chip was so we could add some buttons for input as well. it change volume and channels etc. plus it makes the display output more generic

is it worth asking seeed for idea's on displays they can source at reasonable cost?
edit : just did a quick search and found this. http://www.sparkfun.com/commerce/product_info.php?products_id=712

maybe something like that is worth considering.

with regards to the sram, from memory it seems that microchip use one for ethernet buffering from the internet to the pic, and they use the second for buffering from the pic to the audio dac. so it makes it easy to have both.
at this stage i would design them in and then see if we can remove them later.

Assuming no gotta's on the audio side of things i think that the 1003 with audio in would be the way to go. due to the extra flexability. but i havnt done any checking of the datasheets yet.
54
Web platform / Re: Internet radio addin board.
reserved for more info

SPI i/o expansion.
MCP23s17 http://ww1.microchip.com/downloads/en/D ... 21952b.pdf
or
MCP23S18 http://ww1.microchip.com/downloads/en/D ... 22103a.pdf (open drain)

VLSI Audio dac chips
VS1011 audio out, mp3,wma http://www.vlsi.fi/fileadmin/datasheets/vlsi/vs1011.pdf
VS1003 audio out, audio in, mp3, wma, midi http://www.vlsi.fi/fileadmin/datasheets/vlsi/vs1003.pdf
the vs1003 would give more room for different idea's due to audio in etc.
55
Web platform / Internet radio addin board.
Hi,

I have been thinking for a while now that a addin board for the webserver would be a good idea. Also i have allways like the idea of the development kit from microchip.
After a quick PM to ian he suggested to start up a thread so here we are.

My idea is to create a addon board with the same basic features from the internet radio board from microchip to allow it to stream audio and possibly even play mp3's etc from the sd card.

for those not familiar with the microchip board see http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en536047

from what i can see, the following would need to be implemented.

1. 2 x SRAM chips. may as well start with the micro chip ones. http://ww1.microchip.com/downloads/en/DeviceDoc/22100D.pdf
2. VLSI VS1011E MPEG Audio Codec. again lets start with the same one they use and evaluate from there.
3. LCD display. my idea here is a simple character display as from what i have found and from what ian has mentioned a graphic display is harder to source. lets not rule it out though.
4. some buttons for input.

the first problem i saw was that theres not enough i/o to run all this directly to a addin board. from my calculations there is the 8 i/o on the expansion header and 4 pins for the SPI header.

since the 2 ram and the audio codec seem to be spi as well i figure we can use the 4 spi pins as well as 3 more pins for c/s.
that leaves 5 i/o. now looking at the block diagram in the microchip site the audio chip it seems to require3 more pins. so until i have looked further i will assume that to be the case. leaving 2 more pin, pissibly another c/s pin,
edit: a quick looks at the datasheet for the vs1011  it seems that it requires 7 i/o in total. 3 spi, cs as well as 3 others for data control. On the upside it does have 4 GP io coming out of the chip that we may be able to use for something.

My original idea was to use an i2c i/o expansion board for the lcd like the lcd board on the buspirate. but it seems that we are short on pins.

[s:]Im assuming that if i look i will be able to find a similar chip that uses spi. if it was a 16 i/o chip then we should have enough for lcd + some buttons.[/s:]
edit: quick check of microchips website found a 16 bit spi i/o expansion chip. im sure there are other brands.

At this stage im going to look into this further but if anyone has any idea's and or comments please feel free to post.
56
Bus Pirate Development / Re: Higher serial speeds?
well the most interesting value i have found so far is a brg of 3, should = 1M with a 0%error not allowing for the osc error.

i can understand why they are using it in the OpenOCD port. i wonder if terra term or other comms programs can use 1Mbuad.
Interestingly when i entered the top speed of hyperterm i got the same brg, but with a 8% error.

I think it would be worth implementing this speed for at least custom scripting apps and see how it goes.

i might have a play and see what speeds work. I guess the question would be how do i reset the serial speed if its not responding?
57
Bus Pirate Development / Re: Higher serial speeds?
ok i was using 32Mhz , but it seems i should be using 16Mhz .

yep i wasnt dividing by 2. so i was using 32000000. im guessing thats something to do with the 2 clock per instructions.
58
Bus Pirate Development / Re: Higher serial speeds?
just trying to work out what speeds are theritically capable. but looking at base.c either the formular im using is wrong of the numbers mentioned are wrong.

Code: [Select]
//Initialize the terminal UART for the speed currently set in bpConfig.termSpeed 
 static unsigned int UARTspeed[]={13332,3332,1666,832,416,207,103,68,34,};//BRG:300,1200,2400,4800,9600,19200,38400,57600,115200
 void InitializeUART1(void){
     U1BRG = UARTspeed[bpConfig.termSpeed];//13332=300, 1666=2400, 416=9600, 34@32mhz=115200....
     U1MODE = 0;
     U1MODEbits.BRGH = 1;
     U1STA = 0;
     U1MODEbits.UARTEN = 1;
     U1STAbits.UTXEN = 1;
     IFS0bits.U1RXIF = 0;
 }
 

according to the datasheet it should be  brg = ((frquency/baud)/4)-1

by my calcs i get a brg value of 68 for 115200, where you seem to have 34.

am i doing something wrong?

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01692450656session_write_close ( )...(null):0
20.01722582264ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01722583040Database_MySQL->query( ).../DatabaseHandler.php:119
40.06262721792Database_MySQL->error( ).../Db-mysql.class.php:273