Show Posts
Pages: [1] 2 3
1  Using Arduino / Programming Questions / Re: USBasp instead of USBtiny on: January 23, 2013, 01:14:00 pm
Oh... How stupid am I? Initially I thought it was too obvious to be the solution to my problem! I have wired everything up (except for the cube, which currently not connected), compiled the code and disconnected the PCB from the USBasp. Now, I am using a 5V 3A power supply and the only visual result is the two LEDs on the switch flashing alternately and infinitely. When I press the reset button it starts all over again (as expected), but as long as I press the button everything keeps being switched off (apart from the power LEDs). Also, when I press the switch with the 2 LEDs, it stops flashing and only 1 LED is kept on. According to the code (which I am not yet capable of undestanding) is this the way the circuit should behave? Keep in mind that you don't have to answer if it's too difficult find out whether there's a problem with the circuit or not. I will soon connect the LED cube and I'll let you know if I encounter any kind of issues. Thank you VERY much for your help!
2  Using Arduino / Programming Questions / Re: USBasp instead of USBtiny on: January 23, 2013, 12:29:45 pm
Yes, what I mean is -p m32. When I try it I get this:
Quote
C:\Users\Σωτηρης>avrdude -c usbasp -p m32 -B 1 -U flash:w:test.hex

avrdude: set SCK frequency to 750000 Hz
avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9502
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: set SCK frequency to 750000 Hz
avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: reading input file "test.hex"
avrdude: error opening test.hex: No such file or directory
avrdude: input file test.hex auto detected as invalid format
avrdude: can't open input file test.hex: No such file or directory
avrdude: write to file 'test.hex' failed

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

3  Using Arduino / Programming Questions / Re: USBasp instead of USBtiny on: January 23, 2013, 11:30:49 am
Lets say that I create a directory (folder apparently) named hexfile on my desktop. How would this command look like: avrdude -pm328p -P usb -c usbasp -D -U flash:w:test.hex:i  ?
Quote
What I actually did was to copy all these commands and paste them in notepad. Then I saved the file as test.hex
Is this correct?
4  Using Arduino / Programming Questions / Re: USBasp instead of USBtiny on: January 22, 2013, 03:43:27 pm
[CORRECTION] What I actually did was to copy all these commands and paste them in notepad. Then I saved the file as test.hex
5  Using Arduino / Programming Questions / Re: USBasp instead of USBtiny on: January 22, 2013, 03:35:54 pm
I did so. Particularly, I saved it on my desktop.
6  Using Arduino / Programming Questions / Re: USBasp instead of USBtiny on: January 22, 2013, 02:09:28 pm
Yes, I understood that the test.hex is an example file, but coincidencely the Instructable editor also provides a file like this. It's a test code to find out if there any problems with the wiring. Unfortunately, I couldn't find any helpfull information in your link. This seems important:
-U <memtype>:r|w|v:<filename>[:format]: OK this one is the important command. Its the one that actually does the programming. The <memtype> is either flash or eeprom (or hfuse, lfuse or efuse for the chip configuration fuses, but we aren't going to mess with those). the r|w|v means you can use r (read) w (write) or v (verify) as the command. The <filename> is, well, the file that you want to write to or read from. and [:format] means theres an optional format flag. We will always be using "Intel Hex" format, so use i
So, for example. If you wanted to write the file test.hex to the flash memory, you would use -U flash:w:test.hex:i. If you wanted to read the eeprom memory into the file "eedump.hex" you would use -U eeprom:r:eedump.hex:i

but, yet, I don't get my answer. The cmd can't find the file. When I click on the Instructables page, I'm redirected to this page: http://www.instructables.com/files/orig/FQX/H9M5/GICYB93T/FQXH9M5GICYB93T.tmp
What should I do with this? Copy it and save as a specific file format? Where should I save it in order for the cmd to find it?
7  Using Arduino / Programming Questions / Re: USBasp instead of USBtiny on: January 22, 2013, 12:11:25 pm
There's been a progress! The only thing I had to change to the commands provided was the usbtiny. I had to make it usbasp! But still, I don't know what's going on with the test.hex. When I type in the command I get:
error opening test.hex: no such file or directory
That obviously means that I have to create the file/directory... How can I do this? Where should I save the file?
Thanks,
Sotos
8  Using Arduino / Programming Questions / Re: USBasp instead of USBtiny on: January 22, 2013, 11:39:00 am
OK.... I crossposted. Keep in mind that others don't even bother at all when they post a topic again and again. I included a note, so I could remove the topics that weren't in the correct category. Yet, that's not our issue... Erni, your advice seems very helpful! What you suggest is to open the cmd, and type in the specified command? I searched the web and I found that the chip in the Instructable and mine are identical. The partnumber is m32, so the command should look like this: avrdude -pm328p -P usb -c usbasp -D -U flash:w:test.hex:i   
Am I right?
Does the text.hex correspond to a file? Should I copy all these commands and create some kind of file? Should I create a folder/directory?
9  Using Arduino / Programming Questions / USBasp instead of USBtiny on: January 22, 2013, 10:13:12 am
Hi there!
I' ve recently decided to implement a project found in Instructables: http://www.instructables.com/id/Led-Cube-8x8x8/?ALLSTEPS
It looked very challenging, so I totally committed myself to this project. I succesfully completed the build of the LED Cube, soldered all the components and made all the necessary connections. I quadruple checked the connections adn everything seems allright. My problem is that instead of ordering a USBtiny ISP from eBay, I ordered a USBasp ISP. Nevertheless, I installed the necessary drivers and WinAVR as well. Then, I opened cmd, typed "avrdude" and (as expected) I was given all the AVRdude options. Now, I'm completely baffled. I don't know what to do in order to start programming the ATmega32 chip (keep in mind that instead of ATmega32-16PU, I'm using ATmega32A-PU, but I don't think that this is a problem). Shall I open cmd or another program? What should my first command be? Do I have to include any extra commands, because I'm using USBasp? In which part of the code will the commands [the ones that the publisher of the project's instructions have provided (like test.hex)] be included?
Thank you in advance!

(I' ve also posted this topic to two other categories of the forum. If you think that I should remove it from this category, please let me know)
10  Using Arduino / Audio / Re: MIDI Keyboard Encoder - Arduino Piano/Keyboard (question) on: November 05, 2012, 04:29:33 am
I'm looking forward to seeing your project! Thanks for the reply!
11  Using Arduino / Audio / Re: MIDI Keyboard Encoder - Arduino Piano/Keyboard (question) on: September 22, 2012, 03:43:25 pm
It would be great if you did so!
12  Using Arduino / Audio / Re: MIDI Keyboard Encoder - Arduino Piano/Keyboard (question) on: September 01, 2012, 07:15:25 am
Thanks to everybody for your advice I'll get down to bussiness soon!
13  Using Arduino / Audio / Re: MIDI Keyboard Encoder - Arduino Piano/Keyboard (question) on: August 26, 2012, 06:20:03 am
Come on.... Somebody! I' ve already invested money in this project. It would be such a pity if I gave up!
14  Using Arduino / Audio / Re: MIDI Keyboard Encoder - Arduino Piano/Keyboard (question) on: August 17, 2012, 09:04:22 am
 smiley-confuse Hmmmm... All those tutorials confused me... The last one seemed to be the best, but unfortunately it is in French and I couldn't understand what's going on! I downloaded the Keypad and MIDI Libraries and installed them, but I really need some guidance for the code. As I've already mentioned I couldn't figure it out... I suppose that the given codes in the links need to be modified in order to work with my switch setup, which by the way I've built. I used these switches ---> http://www.superdroidrobots.com/images/TE-044-000.jpg and I also used 1N4148 diodes just in case. I installed them on a wooden structure but there  are not any keys yet. These will be made later. Anyway...  I know that I asked for instructions, but that doesn't obviously work... So, would anyone be kind enough to write the code for me, or give me some clear instructions on how to write the code on my own (don't forget that I want the code to co-operate with the swtitch setup I made).
Sorry for being such a newbie, but I really need to complete this project.
Thanks in advance...
15  Using Arduino / Audio / Re: MIDI Keyboard Encoder - Arduino Piano/Keyboard (question) on: August 04, 2012, 04:45:49 pm
Well, I'm not sure that downloading Keypad Libraries would help me. So, let me make more clear  smiley
As I told in a previous post I found this wiring diagram ---> http://midikits.net23.net/midi_8x9_keys/keys_8x9_switches.gif
and I think its ideal. It is really easy for me to make so this would be the one I am considering to use (unless sb has a better solution). The hardware issue is really sorted out! My only problem is how I' m going to make the Arduino to translate the short of two pins to binary information ready to be read by a midi software. This my plan:
1. I Press a key.
2. A switch creates a closed circuit between 2 Arduino pins.
3. The Arduino "senses" that.
4. And begins the "translation" process.
5. Then it sends out a signal to the MIDI connector.
6. The signal then is read by a MIDI device (which in my case would be the computer).

I have figured out steps 1, 2 and 6, but I have no idea what to do for steps 3 to 5. Keep in my mind that I'm not sure if this is the process required in order to output a MIDI signal, but I believe that you will understand what my point is.

Thank you for all your answers and help  smiley
Pages: [1] 2 3