Show Posts
Pages: [1]
1  Using Arduino / Microcontrollers / Arduino Micro butterfly_recv error on: February 01, 2014, 07:13:46 am
Hi,

I was using my arduino micros which i purchased about a month ago, and one of them suddenly started giving a "butterfly_recv" error
The same error is mentioned at : https://github.com/Robot-Will/Stino/issues/19
But no proper solution was found then

Any idea how i can solve this ?


The micro was moving as it was attached to some moving parts, so I thought maybe theUSB jack may have somehow broken, but it doesnt seem so.
I am using Ubuntu - 13.10
Also, on windows, the micro gets detected for about 2 seconds and then vanishes from serial port list.


Any idea how to fix this :\
2  Using Arduino / Microcontrollers / Re: Arduino Micro 5v and gnd shorted on: February 01, 2014, 07:08:12 am
bump
3  Using Arduino / Microcontrollers / Arduino Micro 5v and gnd shorted on: January 27, 2014, 09:24:11 pm
Hi,

I bought a new Arduino micro in december and it worked fine. I made a PCB for it on which i can plug in the micro (like a shield)

Now, I was using the board and it worked fine for about 2 weeks. Suddenly yesterday, I noticed that it refused to connect to Serial monitor and refused to upload.

I took out everything and found out that the 5V and GND on the micro were shorted (had 34 ohm resistance between them).
I was powering the micro with 5V from a LM7805 with an input of 12V. The output was fairly stable (within errors of 7805) 4.7-4.9V. The whole board in general was working fine.

I was wondering if there was something wrong that I was doing or is this some random coincidence where maybe on of my wires shorted with something....
I have another Micro, but am hesistant to put it on and start, as I think it may burn also.

Is it possible that the voltage regulator on the micro has become bad ? If so, how do i test it out ?
Any suggestions as to what might have happened ?

I was running a L298 (a motor and a relay with it) and also had multiple switches attached to it. And an IR sensor, (was using it for robotics purposes.)

Thanks !
4  Development / Other Hardware Development / Arduino Clone - Severino Issues on: May 31, 2013, 02:59:25 pm
Hi,

I saw arduino severino a while back and thought it'd be cool to try and recreate a similar thing for some small projects.
I got the schematic and altered it, as I didn't want to program using DB9 (I don't have a good DB9/RS232 to USB converter). And i had used another USB-TTL converter (CP2102 from Silicon Labs) earlier, and so I thought I could use it instead of the general FTDI.
So, i made a board and got a cheap PCB made for it. And something really weird happened :
I burnt the bootloader, and was able to program the arduino with Blink and other codes.
While testing, I tested Serial Comm, and it did not work. i.e. I was getting gibberish on SerialMonitor. The same character keeps appearing ... so, if I tell it to print("a"), it doesnt, but always prints "p" (with 2 dots on top ... ) So, basically, it seems like some bits got corrupt.
(Baudrates and all were fine.)
I have no clue why this happened.

... I could program it, so Serial should work fine, but it doesn't.



Anyone faced such an issue ? Please help me out here, it's driving me crazy ...
5  Using Arduino / Installation & Troubleshooting / Re: Unable to code an arduino on: May 20, 2013, 04:26:29 pm
I see, okay, i've never faced a driver issue in ubuntu.

Could you explain what I could do for this ?

I find windows has more driver problems than ubuntu, and know how to troubleshoot them. But as ubuntu has never had a problem (for me) I have no idea how to fix this.
6  Using Arduino / Installation & Troubleshooting / Re: Unable to code an arduino on: May 20, 2013, 03:13:55 pm
Regarding any weird punctuation, I doubt it, the exact same code works on another laptop. And even blink doesnt work on mine !

Regarding memory screwed/any other issue. My code uses  5% on my arduino mega 2560. It works on another laptop. Arduino is prefectly fine. In fact using the other laptop I uploaded it nearly 20 times with no issues, I even finished debugging my code, but still cannot upload with my laptop !_!

Btw, I forgot to mention:
i'm using Ubuntu 12.04
7  Using Arduino / Installation & Troubleshooting / Unable to code an arduino on: May 20, 2013, 02:20:00 pm
Hi,

So, I've been using arduino for a long long time. And it worked fine. Suddenly today I was uploading code like normal to debug one of my apps.
I uploaded, and it gave a timeour error.
I tried multiple times, reinstalled, etc etc everything you'd normally do, and it refused to work.

What happens is pretty weird :
It compiles.
It starts uploading (RX/TX flicker)
And somewhere in between RX/TX stops glowing completely, and After a second, I get an error on Arduino stating timeout error.

I tried with Arduino 1.0.4, 1.5.4. I tried it with another laptop, it worked fine. I thought maybe it was a coding error on my part somehow, but even BareMinimum or Blinky won't work.

My laptop recognizes it fine, and it starts uploading, but *always* gies timeout in between. "dmesg" in terminal shows it is detected, it appears in Tools > SerialPort also, I've chosen the correct board (Mega 2560). Suddenly it 's giving an error, I didnt even install anything new.

Could someone please help em out quickly ? I'm at a standstill cuz of it.
8  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: March 30, 2013, 01:23:57 am
ah, this seems much more complicated than I had wagered on ...

I don't have much knowledge about this, so doubt I'd be able to make a whole library for it on my own ...

Could I make some haphazard venture to just "make it work" ?

I mean from the documentation from maxon, i got that it is expecting to receive :
> 1 bit Start of Frame
> 11 bit COB-ID (first 4 bits frame identifier, last 7 the ID of the receiving device)
> 1 bit RTR which should always be 1
> 6 bit control field (1 bit for identifier Extension which is to be dominant (1 ... i assume), 1 reserved bit which should also be dominant, 4 bits for Data Length Code which holds number of bytes being transfered)
> The data bytes that need to be transferred
> 16 bit CRC. To generate the CRC, they have given a function
> 2 bit Acknowledge which should always be 11
> 7 bit End of Frame
> 3 bit with no data transfer (intermission)

Also, they've given an example for this also, with what the COB-ID should be like (0x600 + NODE_ID) and the data bytes should be...

... now As i had mentioned in my earlier post, if I knew exactly what Due sends via can, i.e. like which element of the structure is the ID, which element is data, etc ... I think i could achieve basic communication.

What I mean is like this :  irrespective of the comm protocol, as long as i have a register somewhere that if i set it to : 1100000000111000111111111.. etc it will just put a start of frame, send the data, put end of frame and wait for the intermission, i can make it work

(this is something like UART, where i just put Serial.write('w'), it sends startframe + 'w' + endframe ... assuming no parity etc was enabled, now the 'w' may be according to some higher protocol, but for the transmitting_buffer, it doesn't really matter)

And also, for receiving, there would again be a receiving buffer (register) which i can just read in a continuous while loop ... like : i'll just put ...
if( CAN_RX_FLAG == true) {
    my_msg = CAN_RX_BUF;
    if(my_msg == 0x6d64f74e28.. )
      Serial.print("comm was successful, motor is running ! ");
}

So ... any idea if some buffer like this are there ? or if I can use those structures in libsam for these ? Or maybe even instead of buffers, can I use mailboxes like this (as you said CanOpen is a higher protocol of Can, mailboxes would be there also ... i assume)
9  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: March 29, 2013, 10:10:39 pm
What exactly is the difference between can open and can ?
10  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: March 29, 2013, 12:01:13 pm
Maxon epos 2 controllers 70/10.

The product id according to the website is 375711

Thanks !
11  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: March 29, 2013, 01:51:33 am
Thanks for the replies, AdderD, Sherlock.

I assumed family id to be three id being sent as it started with 1100, which I read somewhere is supposed to be for sdo, which is what I was trying out ...

Anyway, back to my issue, I directly used the example 1 from CAN0 to CAN2, and it worked (with 2 transceivers )

And as I already mentioned, with the device I'm using, it doesn't work

In the docs of the device, only the bits for the frame are, given, and this is the first time I'm using can ...
What I tried was to check all the values of the registers on the can and mailbox structures.

Could you help me out with this? Basically how do I find out exactly what it's sending, what mask is being used while receiving, what is the mall being applied on (full frame from id, or only data, etc) and finally what it's receiving ...

If you'll could help me out, it'd be awesome ... been trying to get the thing work for a week now ..
12  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: March 28, 2013, 12:48:50 am
Do you mean v1?

______
Rob

Yeah, sorry, I meant v1.
13  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: March 28, 2013, 12:25:23 am
Hey, I bought a due a week ago and tried using can with a device I have.
I checked the family id due was sending yesterday, and saw it to be huge. The docs of the device say it is expecting a 11bit cob id.

Googling it ,I found out  about can v2 having 29 bit ids and can v1 having 11 bit ids. ...  my current assumption is that the device is expecting can v1 while due is using v2
So, any idea how I can make due use v1?
Pages: [1]