Show Posts
Pages: [1] 2 3 ... 53
1  Using Arduino / Microcontrollers / Re: Why 16 Mhz clock??? on: July 21, 2014, 01:29:52 pm
I think the easy uS timing was a big part of the decision
16MHz works well enough for 115K besides not everyone wants to run that speed

another for no punctuation. lol.

maybe it will get past his time.
I cannot even understand what you are trying to say.

Can you provide any evidence of _actual_ problems with communications
not just marginal timing. The serial protocol has some tolerance and
I haven't had any real problems with Arduino at 16MHz running 115.2K

The only real problem I have had is communicating with XBee at "115200"
but that is because those have much worse timing and actually run at 11,1111 baud

 
2  Using Arduino / Microcontrollers / Re: Why 16 Mhz clock??? on: July 19, 2014, 02:15:04 pm
Of course if you used an 8MHz crystal, then yes, the only real difference is that one allows you to do twice as much in the same time.

there is another significant  difference. 16mhz gives marginal divisor for 115kbaud serial and 8mhz is a disaster. in fact a properly tuned internal oscillator can provide more reliable communications.  its unfortunate arduino developers (and many groupies apparently) have infatuation with round numbers. there are many choices close to 16mhz that would give much smaller error for the uart.
I think the easy uS timing was a big part of the decision
16MHz works well enough for 115K besides not everyone wants to run that speed
3  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: July 19, 2014, 01:47:45 pm
You can call _delay_ms() yourself instead of delay since you don't need a variable argument
which *might* save a few bites. A word of warning though:

The internal clock in the '13 is marginally accurate at best and is voltage and temperature dependent
Things that need tight timing like generating rf signal pulses might not work as you expect
4  Using Arduino / Microcontrollers / Re: internal memory ? on: May 25, 2014, 01:31:51 pm
Most microcontrollers that atmel makes (with a few exceptions) have some EEPROM
5  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: May 25, 2014, 01:23:04 pm
Yes the 1.1V reference works. But make sure you use the latest version because it was not supported in old versions
6  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: May 10, 2014, 10:17:22 pm
Thanks,
So for 4.8 mhz I just to make the High fuse 0xFF? and my f_cpu 4800000?
No. You need to change the low fuse to 0x79 instead of 0x69
Quote
Is there a way to have 8 mhz?
External oscillator
7  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: May 09, 2014, 11:54:31 pm
Code:
###########################################################################
attiny13int.name=Attiny13a @ 128 KHz (internal watchdog oscillator)
attiny13int.upload.using=usbtinyisp
attiny13int.upload.maximum_size=1024
attiny13int.upload.speed=250 # important for not losing connection to a slow processor
attiny13int.bootloader.low_fuses=0x7B
attiny13int.bootloader.high_fuses=0xFF
attiny13int.bootloader.unlock_bits=0x3F
attiny13int.bootloader.lock_bits=0x3F
attiny13int.build.mcu=attiny13
attiny13int.build.f_cpu=128000
attiny13int.build.core=core13

###############################################################
Good
Code:
attiny13at4.name=ATtiny13a @ 4.8MHz (internal 4.8 MHz clock)
attiny13at4.upload.using=usbtinyisp
attiny13at4.bootloader.low_fuses=0x69
attiny13at4.bootloader.high_fuses=0xff
attiny13at4.upload.maximum_size=1024
attiny13at4.build.mcu=attiny13
attiny13at4.build.f_cpu=600000
attiny13at4.build.core=core13
###############################################################
Values are ok, but it is actually for 600Khz so the name is wrong
Code:
attiny13.name=ATtiny13a @ 9.6MHz (internal 9.6 MHz clock)
attiny13.upload.using=usbtinyisp
attiny13.bootloader.low_fuses=0x7a
attiny13.bootloader.high_fuses=0xff
attiny13.upload.maximum_size=1024
attiny13.build.mcu=attiny13
attiny13.build.f_cpu=1200000
attiny13.build.core=core13

###############################################################
This is wrong. The fuses are set for 9.6MHz no divider but FCPU is set to 1.2MHz
Change FCPU to 9600000
8  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: May 09, 2014, 01:39:56 pm
Im not sure If I have an older version of the core13 installed, but as I change the clock speed of the tiny (via burn bootloader) it changes the amount of "delay" time. Why is this?
Did you change F_CPU to match?
9  Using Arduino / Microcontrollers / Re: does this mean a fail on: April 25, 2014, 08:11:31 pm
Yeah that means it failed. The PAGEL and PS2 signals message can be ignored but not the chip signature.

Even you have the wrong chip or revision, a wiring problem, or a clock rate problem
10  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: April 20, 2014, 01:49:09 pm
Hello i just wanted to say a BIG thank you for the core13 really nice work, its amazing how much you can squeeze into a attiny13.
thanks to your core i managed to get my nrf24l01 remote control transmitter to work on attiny13(with 3 byte to spare..) so thank you again.
Congratulations.
I found it surprising nobody else had a solid Attiny13 core so I decided I might as well make one
11  Community / Website and Forum / Re: Loop Back Test - Sticky? on: March 11, 2014, 06:34:05 pm
Quote
Unfortunately rx0 is on the ftdi that I use to connect to my PC.
That's the point
Quote
I also have a Arduino Uno that I uploaded a sketch to and I ran fine so I'm assuming it's working ok. Does this loop test tell me more about my Uno that I would like to know? I have a reset pin and a tx1 and rx0 on the Digital pins. But again, not to sound stupid but what would be a terminal program and how do you hook up a serial port to test with.
The loopback test is to verify operation of the USB/serial chip. If it works there is no need for it
12  Using Arduino / Programming Questions / Re: Unwanted stepper motor action on: February 21, 2014, 03:00:32 am
What powers the pump? It isn't the same supply as the Arduino is it?
13  Using Arduino / Programming Questions / Re: Unwanted stepper motor action on: February 20, 2014, 05:52:18 pm
Code:
 float selectorValueFloat = round(analogRead(selectorPin) / divider);
WTF? You divide an integer by a float, resulting in a float. You round that off, resulting in an int, which you store in a float. Why?

Code:
 //cast to integer for e.g. indexing arrays
  sv = selectorValueFloat;
You wouldn't have to do this if you hadn't stored the int in a float in the first place.

Quote
How would I be able to read only change of state
The change of state of what?

Code:
 if(sv ==0 || stop1 || memo !=sv)
             {
        noTone(12);
      digitalWrite(enable, LOW);
      digitalWrite(stopled, HIGH);
      digitalWrite(startled, LOW);
      has1 = 1;
      memo = sv;
             }
WTF? You haven't learned to indent properly? Use Tools + Auto Format!

Code:
           }}
NEVER!


WOW Way to overreact right there. Yes the int/float rounding arrangement he has is very convoluted
but there is no reason to be so rude about it.

Indentation is something that they will get the hang of. It isn't a big deal

Quote
Every curly brace belongs on its own line. EVERY ONE!

Not true. Putting opening braces on their own line is usually nothing other than a waste of screen space.
Closing braces should be on their own line though.
14  Community / Website and Forum / Re: Moderation Guidelines && Applications for Moderators on: February 20, 2014, 05:05:58 pm
Here it is: http://forum.arduino.cc/index.php?topic=218912.0

I can see why Paul reacted to the convoluted int/float conversion
but I think he way over reacted. And the code formatting is not a big deal at all
15  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: February 17, 2014, 05:59:40 pm
Wow this got all the way to page 17

I will hook up the development board soon to see if I can make some improvements
for the first release of 2014
Pages: [1] 2 3 ... 53