Loading...
  Show Posts
Pages: 1 [2] 3 4 ... 8
16  Using Arduino / Project Guidance / Re: Licensing Question on: March 27, 2013, 02:11:20 pm
Section 22 of the datasheet
http://www.atmel.com/Images/doc7766.pdf
does not mention VID/PID at all. Let us know what Dean says.

Hey CrossRoads! Well I kinda went through the datasheet and some app-notes before posting here.. But unfortunately they don't clearly state what I'm up against! I don't want to make something (my first real project) and get like a thousand lawsuits from day one! I know that one should get a lawyer for this kind of things, but the project will be community funded, so not enough money for lawyers.. I know that

Code:
IF (I want my own VID/PID == 1){
I'll have to pay for every license that I'm going to use (USB and LUFA)
}
else{
I want to use the original arduino bootloader (USB + LUFA) license without any direct modifications.. I don't know what to do here!
}

I'm awaiting a email from Dean.. He doesn't like to answer emails (he said that on his blog).. But still I hope he'll give me a answer soon.. I'll post his answer as soon as I get it!

//Basel
17  Using Arduino / Project Guidance / Re: Licensing Question on: March 27, 2013, 10:14:57 am
It seems to me that these questions should be addressed to the Arduino team, rather than being aired here.

I thought that maybe someone knew something here.. Anyway thanks for even answering this topic =P, I've sent a email with the question to Dean (creator of LUFA)..
18  Using Arduino / Project Guidance / Licensing Question on: March 27, 2013, 01:13:25 am
Hey Everyone! =)

I'm working with a project that is going to implement an atmega32u4 uC. The basic schematic is going to follow the original Leonardo schematic. The software is going to be based on the Arduino bootloader for the leonardo together with the Arduino IDE (plus new libraries).. I know that as long as the project files/hardware are open source then there should be no problem of manufacturing and selling the board (which I intend to do of course). My question is the USB licensing.. Will it be free/be tied to the original Arduino USB license (I'm an engineer, so excuse my juridical terms), or will I have to register a new VID/PID from the USB company? I know that the Leonardo also uses the LUFA project, will this give me any problems (if I indirectly use there source in my project)? Do I have to inform them in any way (LUFA) ???

Thank you in beforehand..
19  Using Arduino / Motors, Mechanics, and Power / Re: How Do I Run Two Motors Same Time WIth Arduino Motor Shied R3 on: March 25, 2013, 08:04:04 pm
int E1 = 3;
int M1 = 12;
int E2 = 11;                     
int M2 = 13;                       
 
void setup()
{
    pinMode(M1, OUTPUT); 
    pinMode(M2, OUTPUT);
}
 
void loop()
{
    digitalWrite(M1,LOW);
    digitalWrite(M2, LOW);
    digitalWrite(E2, HIGH);
    digitalWrite(E1, HIGH);   
    delay(5000);
 }


Please use the code quotes next time... Anyway I can directly see that you didn't define the pins of E1 and E2 as outputs.. Try this to begin with:

Code:
int E1 = 3;
int M1 = 12;
int E2 = 11;                     
int M2 = 13;                       
 
void setup()
{
    pinMode(E1, OUTPUT); 
    pinMode(E2, OUTPUT); 
    pinMode(M1, OUTPUT); 
    pinMode(M2, OUTPUT);
}
 
void loop()
{
    digitalWrite(M1,LOW);
    digitalWrite(M2, LOW);
    digitalWrite(E2, HIGH);
    digitalWrite(E1, HIGH);   
    delay(5000);
 }
20  Using Arduino / Microcontrollers / Re: Problem with serial communication from Tiny84 to Arduino on: March 25, 2013, 10:13:53 am
Mine is

ATTINY84-20PU

But for blinking a LED that should not matter. It is the max frequence, and as you are using 8MHZ you should be fine.

By the way pin 1 is physical pin 3 on the Tiny, see this reference sheet

http://www.akafugu.jp/images/microcontroller-reference-sheet.png

I believe that the pinout will differ from core to core.. In most cores you'll find a "Ascii art" of the pinout for the tiny-IC your working with.. Look under
Code:
ROOT_DIR\hardware\tiny\cores\tiny\pins_arduino.c
.. You'll see something looking like the image bellow.. If you can't find any Ascii art, then you'll have to go through the pins_arduino.c file and look for the connection in the code..

The 84V won't differ from the 84 according to the datasheet.. 84V works in a different voltage range, but still both 84V and 84 should yield the same results at 5V.
21  Using Arduino / Microcontrollers / Re: Problem with serial communication from Tiny84 to Arduino on: March 24, 2013, 01:02:39 pm
If I understand right, the arduino-tiny-0100-0015.zip has no "Attiny84 @ 8MHz (Internal Oscillator; BOD Disabled)" - this is a part of the tiny.zip. The arduino-tiny-0100-0015.zip comes with "ATtiny84 (internal 8 MHz clock)" and does definitely not compile with original MANCHESTER or your update, neither on Arduino 1.0.1 nor on 1.0.4.

What I did was:

1. Donwnloading and installing the Arduino 1.0.4 IDE (after it didn't work with 1.0.1)
2. Downloading and installing the arduino-tiny-0100-0015.zip http://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0015.zip
3. Downloading and installing all proposed MANCHESTER libraries starting with this one https://github.com/mchr3k/arduino-libs-manchester/ and updating with this one http://arduino.cc/forum/index.php?action=dlattach;topic=156046.0;attach=39218
4. Downloading and installing the tiny.zip https://github.com/downloads/mchr3k/arduino-libs-manchester/tiny.zip

Selecting "Attiny84 @ 8MHz (Internal Oscillator; BOD Disabled)" compiles with MANCHESTER but does nothing with my Tiny 84V 10 PU, the "ATtiny84 (internal 8 MHz clock)" doesn't compile with MANCHESTER.

By the way: I did nothing with the core subdirectory of MANCHESTER, since the tiny.zip should be sufficient.

So, where is the error in my chain of actions?


You're obviously doing something wrong because I just REdownloaded the core and opened up the boards.txt and there you have it: attiny84at8.name=ATtiny84 @ 8 MHz  (internal oscillator; BOD disabled)

So if you're not seeing this in the IDE then I believe your putting the files in the wrong directories..

Follow these steps and report again:

1) Download the core: http://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0015.zip

2) Extract the directory "tiny" to "C:\arduino-1.0.1\hardware" (change to your path to the hardware folder of the arduino IDE). You will get the following tree under the hardware folder:
C:\arduino-1.0.1\hardware\tiny\boards.txt
C:\arduino-1.0.1\hardware\tiny\cores
C:\arduino-1.0.1\hardware\tiny\bootloaders
and so on......

3) Download the updated manchester library and extract the files to "C:\arduino-1.0.1\libraries".. You will get the following tree under the libraries folder:
C:\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.cpp
C:\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.h

4) Try the sketch that I posted in the previous post.

@Erni: Thank you for trying out the library! =)
22  Using Arduino / Microcontrollers / Re: Problem with serial communication from Tiny84 to Arduino on: March 24, 2013, 12:16:45 pm
Well, I installed the tiny.zip https://github.com/downloads/mchr3k/arduino-libs-manchester/tiny.zip suggested for MANCHESTER library in the hardware subdirectory of my Arduino workspace and used it instead of the "standard" library from http://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0015.zip.

The MANCHESTER example code now compiles without error. Unfortunately the code does not run on my tiny84, even if I just try a led blink code nothing happens, i.e. the tiny.zip seems to have a bug!? I used the
Code:
ATtiny84 @ 8 MHz  (internal oscillator; BOD disabled)
configuration instead of
Code:
ATtiny84 (internal 8 MHz clock)
The latter one works without problems but doesn't compile with MANCHESTER library.

So, what to do now? I'm totally lost  smiley-confuse

I've always used this core: https://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0015.zip&can=2&q=.. Without any problem! Which version of the Arduino IDE are you using???

Use the standard core together with the library that I've posted above.. And use the option Attiny84 @ 8MHz (Internal Oscillator; BOD Disabled).. Compile, upload and post your results here..

Edit: Here is a sketch I believe will work.. Connect the Data pin of the transmitter to D4 (Physical pin 7). Connect a switch between GND and D2 (physical pin 5). Everytime you press the switch the tiny will transmitt 12345 to the reciever.

Code:
#include <MANCHESTER.h>

unsigned int Data = 12345;
void setup()
{
  MANCHESTER.SetTxPin(4);
  pinMode(2,INPUT);
  digitalWrite(2,HIGH);
  attachInterrupt(0,sendData, FALLING);
}

void loop()
{
}

void sendData(){
  MANCHESTER.Transmit(Data);
}
23  Using Arduino / Microcontrollers / Re: Problem with serial communication from Tiny84 to Arduino on: March 24, 2013, 12:03:08 pm
I didn't read the whole topic that Erni posted, but it looks like that they had a couple of problems with that library.. Anyway, I've made an update of my own.. I don't have the Attiny84 only 85 so I didn't try the library directly. I've updated the Timers and interrupts and also changed the prescaler because the 128 prescaler isn't supported. It compiles fine under Arduino 1.0.1 with the Attiny core.. Please try it and report any problems..

Edit: I've made a few changes to the updated library. You can find the latest patched version on github: https://github.com/baselsw/arduino-libs-manchester/tree/patch-1
24  International / Scandinavia / Re: Arduino Design on: March 23, 2013, 09:03:37 am
Vad hade du tänkt att det ska användas till?
När du säger att du vill bygga in en del lull-lull på kortet så tycker jag att det låter som att det mest ska användas som universellt utvecklingskort och då har väl inte storleken så stor betydelse?
Ska man bygga in kortet någonstans på ett mer permanent sätt vill man väl ha mindre storlek men då vill man väl heller inte ha fler funktioner än man behöver?

Om du ska ha mycket kringutrustning på kortet så kanske du behöver köra mega2560 eller liknande med mycket flashminne. Sketcher som utnyttjar all hårdvara kommer nog att behöva utrymme.
Om du nöjer dig med 32KB flash så är nog 32u4 att föredra så kan du rationalisera bort det externa USB-chippet för att spara utrymme.

Själv använder jag bara Arduinokorten för prototyping och när koden fungerar bygger jag ett eget kort utan onödiga komponenter.

Vad det används till är upp till användaren att bestämma.. Vad jag vill veta är vilken/vilka funktioner/komponenter som är vanligast hos användarna.. T.ex. en RTC klocka, vilket kräver en extern komponent (för precision).. Jag känner till allt som du nämner ovan och det var inte det jag sökte direkt.. Jag vill bara veta vad är vanligast eller mest eftersökt som en första "arduino board"...

Det behöver inte vara ett kort, det kan vara fler.. Jag försöker bara sammanställa vad användarna vill ha som minimum på ett kort.. Du kan se detta som en statistik undersökning =)..

Låt oss ta ett exempel: Jag är en användare som behöver ett kort som har minst 2 reläer och en RTC klocka. SRAM och Flash minne är inte så viktiga eftersom mitt program är väldigt liten, så en atmega328p hade varit bra som utgångspunkt. Dvs ett kort som ser ut som en UNO plus 2 reläer och en RTC klocka..
25  International / Scandinavia / Arduino Design on: March 22, 2013, 06:33:50 pm
Tjenare!

Jag vill designa en förbättrad/utökad variant av Arduino med en massa inbyggda "accessories" och med en "small factor"/liten i storlek. Vad jag behöver hjälp med är svar från er användare:

- Vilken typ av microprocessor skulle ni vilja ha i (atmega328/2560/32U4, ATSAM3X8E (DUE) eller kanske en XMEGA).
- Vad skulle ni vilja ha inbyggt i en arduino (Ja förutom grundkomponenterna som huvudprocessor och FTDI/atmega8-16U2)?
- Har ni några speciella krav på storlek (Vi kan använda Arduino UNO som startpunkt i storlek, dvs mindre/större än UNO)?
26  Using Arduino / Microcontrollers / Re: Atmel XMEGA-A3BU Xplained, Has RTC. Anyone had experience with? on: March 22, 2013, 05:40:22 pm
I'm considering moving to an improved Atmel development board with a built-in real time clock, like the XMEGA-A3BU Xplained.
See it here: http://www.atmel.com/tools/xmega-a3buxplained.aspx?tab=documents

A sales rep indicated it would share the commands with a Mega 2560.

Their Studio 6 IDE (C/C++) is amazing, compared to basic IDEs I'm using.
Their starting prices are comparable to that of the Arduino Uno.

Has anyone converted any Arduino sketches or code to the Xmega platform?

Try google next time... Here is the core and library's for the xmega family: https://github.com/akafugu/Xmegaduino
27  Using Arduino / Microcontrollers / Re: Decreasing the baud rate of Serial communication. on: March 21, 2013, 06:17:23 pm
Hi Arduino Forum. Recently I've got my Attiny85 talking to the Computer through an Arduino UNO. I followed the tutorial here:
http://www.instructables.com/id/Attiny-serial-monitor-using-arduino-walkthrough/?ALLSTEPS

Everything worked perfect. I just had to connect one of the pins on the Attiny85 to the TX pin on the Arduino board. However I need to extend the capabilities of Serial communication between the Arduino and Attiny85. I want to go wireless with these RX linkers from SparkFun:

https://www.sparkfun.com/products/10534 - RF Link Transmitter (434MHz) from SparkFun for about 4$
https://www.sparkfun.com/products/10532 - RF Link Receiver (434MHz) from SparkFun for about 5$

I have them already, but they require a baud rate of less than 4800bps. I don't know why, but when I change the number in the Serial.begin() function from 9600 to some less number, it gives me an error. It says that its possible only to have a 9600, 32300 or 110000bps baud rate.

Is it possible to fix this problem, or can you suggest a way on how to get the communication working.


Do you have to use the serial library???? I've personally used the Manchester library together with RF Link transmitter/receiver.. Without any issues.. I had the transmitter connected to the Attiny85 and the receiver to a atmega328p.. Here is the library if you want to try it out:
https://github.com/mchr3k/arduino-libs-manchester/
28  International / Scandinavia / Re: Söker Arduino användare i Södermanland on: March 19, 2013, 04:55:14 pm
Jag finns i Malmö/Lund till de som behöver hjälp eller kanske dela idéer o så.. Känner ingen här som är "into" sådant.. Hade varit kul!

//Basel
29  Using Arduino / Programming Questions / Re: Need help with a Math problem on: March 19, 2013, 01:02:26 pm
You got it backward... Try this instead...

Code:
az = az * DegreeToRadian;
el = el * DegreeToRadian;
    _XX = (1 / DegreeToRadian) * ( atan(cos(-az) / tan(-el) ) ) + 90.0;
    _YY = (1 / DegreeToRadian) * ( asin(sin(-az) * cos(-el) ) ) + 90.0;
30  Using Arduino / Programming Questions / Re: Need help with a Math problem on: March 19, 2013, 09:55:55 am
I see that you're using degrees. All trigonometric math functions use radians. Meaning convert your degrees to radians (90 degrees == pi/2 radians). Second, making a variable a float or double doesn't make the math float/double. Here is a example:

Code:
float x = 90 * 1.1;

Won't necessarily give you 99 because the number 90 is an integer. Type this instead to fix the problem:

Code:
float x = 90.0 * 1.1;

By putting a ".0" in front of the number you automatically turned it from an integer to a float.

I'm not home, otherwise I would have tried your code...
Pages: 1 [2] 3 4 ... 8