Show Posts
Pages: 1 ... 9 10 [11] 12 13 ... 18
151  Using Arduino / Microcontrollers / Re: [Solved] Help with ATSAM3X8E (Due barebones) on: April 04, 2013, 10:02:52 pm
Looks good.   A lot more capacitors than I anticipated, and I wasn't sure if both crystals were necessary myself.

So what's the programming process w/ the USB attached directly to the MCU?  Erase program w/ the button, then hit reset and upload via arduino user interface or what?  Can you just upload a hex file with another program instead?

The caps are important specially for the USB communication. Getting fluctuations from the power supply/circuitry can lead to the USB connecting and disconnecting randomly.

Well, you program it through the USB native port. The first time you plug in the board it will present itself as AT91 USB to Serial Converter (use the drivers that comes with the SAM-BA program). To program it just go through the normal process through the arduino IDE(Select Arduino Due Native Port in the boards menu). After programming the USB will remount as the Arduino Due in which case you'll have to point the driver wizard to the arduino drivers located somewhere in the arduino ide folder.

After that it's simple really. Just program it with the option Arduino Due Native port (The bootloader will do a soft erase each time it flashes the chip).

NOTE: Regarding the hardware erase switch. If you press it, the chip will be whipped and you'll have to do the process all over again (choosing the SAM-BA drivers etc etc).

NOTE-2: Yes, you can program the chip with Atmels SAM-BA program. I use Atmel Studio sometimes with this chip. What I did is add a external script that programs the chip after compilation.
152  Products / Arduino Due / Re: what can be removed to make a "barebones" due? on: April 04, 2013, 04:01:42 am
Did you try the search function? I made an arduino Due barebones.. See post #21 for the schematic and board files in the following topic: http://arduino.cc/forum/index.php/topic,152234.msg1151179.html
153  Using Arduino / Project Guidance / Re: Android tablet with Arduino UNO communication over USB - basic program on: April 03, 2013, 10:53:33 am
You only need HOST on one side for this to work.. My phone (HTC One X) and tablet (ASUS TF300) can both act as HOST and work flawlessly over USB with my UNO (NO HOST-SHIELD!!!!!!!)... Upload a Serial sketch to your UNO and download the following app to your phone/tablet: https://play.google.com/store/apps/details?id=jp.ksksue.app.terminal&feature=search_result#?t=W251bGwsMSwxLDEsImpwLmtza3N1ZS5hcHAudGVybWluYWwiXQ.... It's a free and simple app that communicates through USB Serial..
154  Using Arduino / Microcontrollers / Re: Burning Bootloader onto Atmega 2560 on: March 31, 2013, 10:15:48 pm
Did you try Nick Gammons tutorial?? The tutorial is easy and awesome at the same time =).. Try the Atmega Board Programmer, a lot easier than the built in Arduino IDE solution.. Here is the link: http://www.gammon.com.au/forum/?id=11635
155  Using Arduino / LEDs and Multiplexing / Re: eagle libraries with led matrix on: March 30, 2013, 05:08:45 pm
I've used a 8x8 LED matrix (20mm).. Didn't find any library so I made my own.. Here is the library and the datasheet.. I hope it's useful for someone!
156  Using Arduino / Project Guidance / Re: Licensing Question on: March 27, 2013, 05:30:56 pm
Got a fast and very helpful response from Dean (who's somewhere on this forum/or got spies here =P). Here is his reply to my email:
Quote
Basel,

The bad news is that even though the Arduino group has purchased a license for their bootloader, the license does not automatically transfer to you; to receive a commercial LUFA license you would need to purchase one from me.

The good news is that this really shouldn't affect you; without a commercial license the *only* restriction is that you must put a copy of the full LUFA license text in your product manual. That's it - as long as you do that you can modify the code, sell your product in the ones or millions, print out the code and burn it, translate it into Klingon -- you get the drift, and all without paying me a cent. The commercial license is really for those companies that either a) don't want to deal with the inconvenience of reproducing the license text or b) want priority, dedicated support from me.

One restriction that might be an issue for you is the VID and PID values - I can't sublicense the ones I have from Atmel, so you would need to source these elsewhere. There's a number of cheap options but if your project is indeed open source you can apply for a free one from here: http://wiki.openmoko.org/wiki/USB_Product_IDs .

Hope that helps!

Thank you again Dean (wherever you are =P)
157  Using Arduino / Project Guidance / Re: Can you send information through infrared? on: March 27, 2013, 02:14:39 pm
Hello everyone,
I've been looking around the web for tutorials but I guess it's a bit confusing. Is it possible to send data such as 1 or 2 to a receiver? And how is this achieved? Will I need a 3 pin detector or just a 2 pin?

Thank you
The answer is YES you can (how do you change channels on your TV????)! Here is a great tutorial from LADYADAAAAA!!! =D http://learn.adafruit.com/ir-sensor
158  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
159  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)..
160  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..
161  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);
 }
162  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.
163  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! =)
164  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);
}
165  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
Pages: 1 ... 9 10 [11] 12 13 ... 18