Show Posts
Pages: [1] 2 3 ... 67
1  Using Arduino / Microcontrollers / Re: Where to start: arduino-tiny on: January 10, 2014, 11:31:06 am
Thanks again for the help, software serial works fine at 57600 - now on to the spi bridge and memory challenges.  For one thing I need a 256 byte input buffer!
2  Using Arduino / Microcontrollers / Re: Where to start: arduino-tiny on: January 09, 2014, 12:37:35 pm
ok, thanks again.  I got the 2313 working and i've now got the '84 working, I understand software serial works there so I'll be using that.

3  Using Arduino / Microcontrollers / Re: Where to start: arduino-tiny on: January 09, 2014, 10:45:23 am
This is the entry in programmers.txt  I used when I used the pololu programmer

Code:
pololu.name=Pololu USB AVR Programmer
pololu.communication=serial
pololu.protocol=avrispv2

edit:
and in boards.txt uncomment pololu programmer

Code:
# The following DO work (pick one)...
#attiny85at16e.upload.using=arduino:arduinoisp
# attiny85at16e.upload.protocol=avrispv2
 attiny85at16e.upload.using=pololu

**YES SIR**
Thank you VERY much.
4  Using Arduino / Microcontrollers / Re: Where to start: arduino-tiny on: January 09, 2014, 10:22:22 am
And I can get it to load by manually issuing the same command the ide was using changing its -c parameter from -cstk500v1 to -cavrispv2 based on reading the pololu programmer web site.

Code:
C:\Users\Bill>H:\apps\arduino-1.05\arduino-1.0.5\hardware/tools/avr/bin/avrdude
-CH:\apps\arduino-1.05\arduino-1.0.5\hardware/tools/avr/etc/avrdude.conf -pattin
y2313 -cavrispv2 -P\\.\COM4 -Uflash:w:C:\Users\Bill\AppData\Local\Temp\build4423
638441239336499.tmp\Blink.cpp.hex:i

That led me to try changing the boards.txt to "attiny2313at8.upload.using=pololu" but nope, that wants a usb connection.

I wonder if "programmers.txt" is still a thing.
5  Using Arduino / Microcontrollers / Re: Where to start: arduino-tiny on: January 09, 2014, 10:13:45 am
You can find the pin asignment in pins_arduino.c

This is for ATtiny2313:

Code:
// ATMEL ATTINY2313
//
//                   +-\/-+
//      (D 17) PA2  1|    |29  VCC
// RX   (D  0) PD0  2|    |19  PB7 (D  16)
// TX   (D  1) PD1  3|    |18  PB6 (D  15)
//      (D  2) PA1  4|    |17  PB5 (D  14)
//      (D  3) PA0  5|    |16  PB4 (D  13)*
// INT0 (D  4) PD2  6|    |15  PB3 (D  12)*
// INT1 (D  5) PD3  7|    |14  PB2 (D  11)*
//      (D  6) PD4  8|    |13  PB1 (D  10)
//     *(D  7) PD5  9|    |12  PB0 (D  9)
//             GND 10|    |11  PD6 (D  8)
//                   +----+
//
// * indicates PWM port

http://www.ernstc.dk/arduino/2313.htm
Brilliant - thanks.  I foolishly looked in pins.arduino.h thinking they'd be in a header file.
6  Using Arduino / Microcontrollers / Re: Where to start: arduino-tiny on: January 09, 2014, 09:59:06 am
well here's a bunch of no fun - it compiles but it won't load.  I know it works in studio with avrisp on com4 so I've selected "attiny2313at8.upload.protocol=avrispv2"  and port com 4.  I get the first set of gibberish.  Tried using "upload using programmer" with programmer set to avrisp and i get the second set of gibberish - which looks a bit more informative at least.
7  Using Arduino / Microcontrollers / Re: Where to start: arduino-tiny on: January 09, 2014, 09:54:27 am
The Serial class in tiny cores is ouput only, so you'll need to use another serial library to receive.


thanks: is this true for the 2313 as well?  It might just be easier for me to use avr studio.  I have a good sized arduino program that I want to port though so I'd much rather stick with the IDE.

also: how do i map which pin is where for the various processors?
8  Using Arduino / Microcontrollers / Re: Where to start: arduino-tiny on: January 09, 2014, 09:35:42 am
Ok, I've switched to a 2313 and I have my breadboard setup working to do a blink under avr studio 4.

next step: the IDE with attiny2313at8.name=ATtiny2313 @ 8 MHz

9  Using Arduino / Microcontrollers / Where to start: arduino-tiny on: January 09, 2014, 07:58:21 am
I have another project where I would like to include an attiny - right now it's an attiny84.  It would be an spi slave on one side connected to PC-serial on the other side - needs to be bidirectional.  

-downloaded the latest 1.0-type library from here 0018 from google code
https://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0018.zip

-put it in the sketch folder and copied the "attiny84at8.name=ATtiny84 @ 8 MHz  (internal oscillator; BOD disabled)" board type to a new boards.txt

-cobble up a breadboard connection for the '84 and start playing with code

Is there a worked example or tutorial somewhere?

I bet a lot of people would appreciate it if there was a sticky at the head of this forum that would point to the latest stable tiny cores and tutorials/examples of use.

Edit: And the sticky should tell you how to track which pin is which and what is supported e.g. serial in/out
10  Using Arduino / Networking, Protocols, and Devices / Re: Could an AVR SPI slave bit-bang its own clock with another pin? on: January 01, 2014, 01:28:14 pm
So you want it to generate the burst of 8 clocks once it sees it's chip select line go low?
I suppose you could turn on a PWM output and then back off again with some assembly level code to do it quick; if your SPI is at 4MHz tho you may not have time.
Yes, it wouldn't be checking its chip select line, it would be a different pin because it might not be the active slave in the conversation but that is the idea.  In my current implementation another attiny is watching the trigger pin and generating the 8 clocks.

As I think about it though, I have to turn interrupts off in the clock-generator attiny not to miss trigger events  and that would make it tough to use the uart and spi hardware.

so... overall dumb idea.  Thanks though.
11  Community / Bar Sport / Re: whats with the attitude on: January 01, 2014, 12:11:30 pm
I use two online forums a lot and the difference is night and day.  The other forum(motorcycle brand) is conspicuously welcoming and unfailingly kind.  This one doesn't suffer fools.
12  Using Arduino / Networking, Protocols, and Devices / Re: Could an AVR SPI slave bit-bang its own clock with another pin? on: January 01, 2014, 11:51:49 am
Slave does not generate the SPI clock, the master does. Were it to become an SPI master, it would have to generate a clock.
Can you buffer the clock from the master and pass it along externally to the other device?
Thanks, I know that the master generates the clock, but in this case the "master" is a couple of shift registers and a clock generator.  If I can get the AVR slave to replace the clock generator I can save a chip.  I may just have to try it once everything else is working.
13  Using Arduino / Networking, Protocols, and Devices / Could an AVR SPI slave bit-bang its own clock with another pin? on: January 01, 2014, 10:35:10 am
I want to use an attiny2313 as a communications subsystem for another microprocessor.  it is hooked up as an SPI slave and just echoes the spi comm on the uart.  The clock is currently being generated by another circuit (another attiny as it happens) but, If I have a spare pin, could the attiny2313 do it itself?
14  Using Arduino / Storage / Re: simple fixed fat library on: November 24, 2013, 12:59:15 pm
this was a more limited setup that allowed you to have 16 files named "0" thru "F".
15  Using Arduino / Storage / simple fixed fat library on: November 24, 2013, 08:24:31 am
I'm working on an sd card with a system that only supports C rather than C++.  I can usually wade through a library and convert but the fat/mmc stuff is a bit daunting.

I do have bare-bones mmc working based on the original jesper hansen c code http://osfcproject.googlecode.com/svn-history/r13/trunk/OSFC/Software/doc/mmc__if_8c-source.html  but I would like to move up a bit from there.

I seem to recall a very basic FAT library that was limited to 16 single character filenames - does anyone recognize that?
Pages: [1] 2 3 ... 67