Show Posts
Pages: [1] 2 3 ... 73
1  Using Arduino / Microcontrollers / Re: Light Dimming with ATtiny85 on: September 17, 2014, 11:42:17 am
Quote
the board doesn't allow a 16MHz crystal

You don't need a crystal to run an ATtiny85 @ 16MHz.

2  Development / Other Software Development / Re: How about including an "XLoader" program in arduino distribution? on: September 16, 2014, 02:26:46 pm
There are several other wrappers around

http://avr8-burn-o-mat.aaabbb.de/avr8_burn_o_mat_avrdude_gui_en.html

http://khazama.com/project/programmer/

An easy solution is to just write the avrdude command in a .bat file (windows) and let the enduser click on that
3  Using Arduino / Microcontrollers / Re: Watchdog Timer with Attiny 85 on: September 12, 2014, 04:38:03 am
Take a look at Jack Christensens demo sleep code

http://forum.arduino.cc/index.php?topic=167467.0
4  Using Arduino / Microcontrollers / Re: ATTiny13 not programmable through IDE on: September 09, 2014, 02:48:52 pm
Quote
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny13

This message can be ignored

Try enable vebose output (in files preferences upload)
5  Using Arduino / Microcontrollers / Re: ATTiny13 not programmable through IDE on: September 09, 2014, 09:45:01 am
It is most likely bad connections.
Are you sure that the chip is positioned properly, the small dot indicates pin1.
Also I don't see a 10uF capacitor on the Uno to disable the reset, althoug this is maybe optional

Could you take a picture ?
6  Using Arduino / Microcontrollers / Re: Using radio library with ATTiny84? on: September 09, 2014, 04:53:36 am
If you use this core

https://code.google.com/p/arduino-tiny/

it compiles, but I don't know if it actualy works
7  Using Arduino / Microcontrollers / Re: Cannot Connect USBasp to Laptop on: September 08, 2014, 04:28:24 am
Quote
The only problem here is to do with Windoze handling of COM ports.

No, there is no COM ports involved when you use USBasp.

8  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 07, 2014, 10:42:31 am
Quote
for comms have you considered making a few timing adjustments to tinydebug ?

Regarding smeezekitty's core and TinyDebug see this

http://forum.arduino.cc/index.php?PHPSESSID=ugfk8b6of564ohs1btn2lpfb10&topic=123388.75
9  Using Arduino / Microcontrollers / Re: Program At89S51 with Arduino SPI library on: September 06, 2014, 11:34:02 am
Did you try to connect the EA pin (pin 31) and the 10 uF capacitor as shown in the avrfreaks link.
10  Using Arduino / Microcontrollers / Re: Program At89S51 with Arduino SPI library on: September 04, 2014, 06:11:49 am
Got it !

What I missed was connecting the EA/VPP pin to VCC, and the 10uF capacitor as shown in your link from avrfreaks.
I use 1k resistor to be safe, and you are right, if connected like mcu port - led anode - R330 - ground, the blink is very weak and could be missed.






11  Using Arduino / Microcontrollers / Re: Program At89S51 with Arduino SPI library on: September 03, 2014, 10:48:03 am
BlackSharp
If you are using a breadboard, you could try moving the processor to another spot, that has helped me sometimes.
Also cleaning the legs on the processor is worth a try.
I apologize if you feel I hiijacked your thread, I can start a new if you wish

PeterVH
I have managed to program the chip with a Pololu programmer. The programming process works without errors.
But my blink program dosn't work (the LED is always on). Is there something magical you should do after programming are done. I have tried holding the reset high and low through a 10k resistor, but that makes no difference.

The program is below, I compiled it in Keil, and in the Keil logic analyzer it works.

Code:
#include <reg52.h>
#define ON 0
#define OFF 1
sbit LED = P2^4;
void DelayMs(unsigned int msec);
void DelayMs(unsigned int msec)  
{
 unsigned int x,y;
 for(x=0; x<=msec;x++)
 {
 for(y=0;y<=110;y++);
 }
}
void main(void)
{
 for(;;)
 {
 LED = ON;  
 DelayMs(50);
 LED = OFF;  
 DelayMs(50);
 }
}

12  Using Arduino / Microcontrollers / Re: Program At89S51 with Arduino SPI library on: August 31, 2014, 04:31:11 pm
I don't know if it helps but I get almost the same output with the sketch:
I use a 16MHz  and 2 20pf caps

Code:
11111111111111111111111101101001
01101001001010000000000000011110
00000000001010000000000101010010
00000000001010000000001000000110

A USBasp programmer connected to the circuit also works and for some reason that I don't understand I don't have to invert the reset line.
13  Using Arduino / Microcontrollers / Re: Is It Possible to Burn the Bootloader of a Pro Mini with a Nano? on: August 28, 2014, 02:43:47 pm
Yes, you can use your Nano as programmer.
Just load the ArduinoISP  sketch to it

http://arduino.cc/en/Tutorial/ArduinoISP
14  Using Arduino / Project Guidance / Re: Different uses for serial communication on: August 28, 2014, 03:31:03 am
Quote
With it, in the case you cite, the master would need two USARTs (or software equivalents) one to communicate with each slave.

Not necessarily
The Frsky telemetry I mentioned is using one bi-directional data line (rs232 - TTL level) at 57600 baud to communicate with several slaves. The slaves have an unique ID, I belive at the moment there are 28 Slave ID's defined.
FrSky call it Smart Port.

So at one end (the receiver in the plane) the receiver is the master with x number of slaves.
One the other end (the transmitter on the ground) the transmitter is the master with x number of slaves

The good thing is that it is open source (OpenXSensor, OpenTx)
http://openrcforums.com/forum/
15  Using Arduino / Project Guidance / Re: Different uses for serial communication on: August 27, 2014, 02:54:32 pm
Quote
For an example, maybe a telemetry package for an RC airplane, where each of those modules are different sensors (gyro, pressure altimeter, airspeed sensor, etc...)

That is in fact the way that FrSky telemetry is working.
It use a serial connection, and each sensor has a unique ID, f.ex. ALT for altimeter.
The receiver then polls each sensor for a value one at a time and send the data back to the transmitter on the ground.
On the transmitter there is a voice modul, so the values can be read out loud (you can't read and fly at the same time !)
Pages: [1] 2 3 ... 73