Show Posts
Pages: [1] 2 3 ... 13
1  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 21, 2014, 07:13:17 am
I just committed to a PCB design for the ATTiny13, really pleased with my code and the minimal design in SMD

Big thanks to all who have helped me here smiley

2  Using Arduino / Microcontrollers / Re: Smaller substitute for Arduino uno on: September 21, 2014, 07:10:46 am
I am a big fan of the Attiny13, there are cores on here for it.
Its only got 1k flash and 64 bytes of ram
£0.35 each in small qty's

Its a LOT of fun trying to pack as much in to 1k/64b as possible, you really start to look at simplification disciplines

I have just finished writing a 250kbps n/8/2 serial receiver to drive ws2812 LED's - fits perfectly in 1k and runs like a dream at 9.6mhz
3  Using Arduino / Microcontrollers / Re: Light Dimming with ATtiny85 on: September 20, 2014, 02:48:08 am
Yea mee too !! - I love it when a plan comes together

Good luck with the light dimming software - I love playing with lights !!
4  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 20, 2014, 02:43:38 am
I was using 0x7a for low fuse, but should be 0x3a to preserve my eeprom during pogramming

found this, VERY useful

http://www.elektronik-kompendium.de/public/arnerossius/programme/web/avrfuse/tn13fuse.html

Cheers smiley
5  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 19, 2014, 03:56:49 pm
Ah yes, thats it CodingBaldy, I had forgotten about that.. I shall check my fuse options - cheers
6  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 19, 2014, 11:14:11 am
I am trying to suss out a bug I have with t13.. I am using EEPROM.h and im just wondering if when I upload the program it wipes the eeprom, how can I stop this with t13 ? (I think I had a similar problem with t85 before but got over that after someone on here helped) - Thanks in advance
7  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 19, 2014, 01:33:36 am
Thanks for that Hiduino, decided not to use progmem for the time being and have a work around for now

Smeeze, well I guess it is a noticable difference from the t85 I 'upgraded' from !! - if you know of any exact settings I should use for 9.6 jiggawatts then please share, for now I have this tiny micro searching for a 88us sync pulse in a 250kbps continuous data stream - I am synching beautifully and grabbing the data with ease on the t13 @ 9.6mhz

What seemed like an impossible task a few weeks back is now a success !! thanks for your help
8  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 18, 2014, 01:11:38 am
0x7A, 0xFF and 9600000 threw up that error I mentioned and i'm not sure how to get round it
To be honest with the settings I have (1200000) it seems that the micro is running alot faster than 9.6 but Im not sure what speed it is...

Perhaps Progmem requires some RAM overhead just to run, so there may not be any advantages on trying to save 8 bytes with it

I have found another way around the memory problem - smarter programming !!! smiley
9  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 17, 2014, 03:09:57 pm
As far as matching F_CPU and fuses are concerned you are right, it was just lucky I guess, perhaps that is the reason why the micros() are x10 ?? - I am not sure what to do to get 9.6mhz with fuses and F_CPU

I dont think I could post my code, no one would understand it !! lol

I will do some more tests on the ram

Oh, and I found that PROGMEM  prog_uint8_t... and ... pgm_read_byte_near(... seem to crash the program, that was my main way of saving ram, but ended up losing 8 bytes after I took the lines out smiley-sad

Thanks for all your help so far sir !! smiley
10  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 17, 2014, 02:29:13 pm
Ok, I found my error, but not sure why this works....

Code:
attiny13.build.f_cpu=1200000L

thats all I changed and it works... although, the timings are well out of the window

I am measuring micros() and the results are 10x what they should be (eg 1040 to measure 104us)

I can live with that for now, as soon as I sussed these two problems, everything started to work

I love my T13's, although they are way short on ram after the compiler gets hold of things, not sure where 20 bytes are going, any clues ?? lol

11  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 17, 2014, 01:17:21 pm
Hi, I got my t13's !! smiley

HELP, I have a problem... I cant write the bootloader to 9.6mhz, I get the following error...

Code:
avrdude: verification error, first mismatch at byte 0x0000
         0xff != 0x3f
avrdude: verification error; content mismatch

I am sure I have all my boards.txt entry correct

Code:
attiny13.name=Attiny 13A 9.6mhz
attiny13.upload.using=arduino:arduinoisp
attiny13.upload.maximum_size=1024
attiny13.upload.speed=19200
attiny13.bootloader.low_fuses=0x7A
attiny13.bootloader.high_fuses=0xFF
attiny13.bootloader.path=empty
attiny13.bootloader.file=empty
attiny13.bootloader.unlock_bits=0xFF
attiny13.bootloader.lock_bits=0xFF
attiny13.build.mcu=attiny13
attiny13.build.f_cpu=9600000L
attiny13.build.core=core13
12  Using Arduino / Project Guidance / Re: Help with controlling an RGB Led Strip WS2812 on: September 16, 2014, 03:10:12 am
when I got my strip, I googled and found this....

http://funkboxing.com/wordpress/?p=1366

the video is cool, but looks much better in real life !

I downloaded the library and code and it worked straight away, this may be a perfect start for you

smiley
13  Using Arduino / Microcontrollers / Re: What's this I found on eBay? on: September 15, 2014, 08:44:48 am
lighting effects that go through smoke, for DJs & bands etc
14  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 14, 2014, 06:33:22 am
Ok I see sir, I might give your code a go when my chips arrive too..

I am really up against flash limits with my code as I ALSO have a 250kbps (n,8,2) data receiver in there as well as 2 button up/down control and EEPROM read/write... all in less than 1k of code !!

so far need to save 90 bytes for it to fit on the t13
15  Using Arduino / Microcontrollers / Re: What's this I found on eBay? on: September 14, 2014, 03:19:12 am
I also had a problem with speed on the 328, I adapted the TVout library (which is mono) so that it multiplexed with 3 channels of PWM to create a 24bit TVout library ! well sort of only one colour at a time. I had to up the processor speed as I was also receiving DMX (250kbps) through the UART constantly AND trying to do heaps of math to create shapes and patterns from the DMX data.

See here -> https://www.youtube.com/watch?v=RV49tQ6Lilc

16mhz just wouldnt cut the mustard as there is a lot of processor time used on creating the video without any visual glitches !
Pages: [1] 2 3 ... 13