Show Posts
Pages: [1] 2 3 ... 11
1  Using Arduino / Motors, Mechanics, and Power / Re: Linear bearing shaft on: February 18, 2014, 01:33:19 pm
Did you find out on your own? What do you suggest? I can't buy another type of bearings, since there is just one model around here.
2  Using Arduino / Motors, Mechanics, and Power / Re: Linear bearing shaft on: February 16, 2014, 01:09:38 pm
Well, I'll come back and tell how it went. On Monday or Tuesday, I'll go buy them. I'm going on the tube.
3  Using Arduino / Motors, Mechanics, and Power / Re: Linear bearing shaft on: February 16, 2014, 12:49:39 pm
Aha. It's just as the one in my first post.
"Alama" in Romanian means brass.
4  Using Arduino / Motors, Mechanics, and Power / Re: Linear bearing shaft on: February 16, 2014, 12:21:34 pm
Hmm, than I'll choose aluminium instead of brass. It's tougher.
5  Using Arduino / Motors, Mechanics, and Power / Re: Linear bearing shaft on: February 16, 2014, 12:16:16 pm
I clearly don't need precision.

It's used to move a robot arm for 1 cm.  As an actuator is used a servo. It's linked through a rod. That's all.
6  Using Arduino / Motors, Mechanics, and Power / Linear bearing shaft on: February 15, 2014, 11:10:02 am
Hi,

I have a linear bearing and a shaft. The weight of the end product is critical.

This is the bearing: http://www.amazon.com/Linear-Motion-Bushing-Closed-Metric/dp/B002BBF9FW
Can I use instead of this http://www.amazon.com/Linear-Motion-Length-Chrome-Hardened/dp/B002BBIHPG/ref=sr_1_1?s=industrial&ie=UTF8&qid=1392480747&sr=1-1&keywords=linear+motion+shaft+6mm  shaft, a hollow one, like this one: http://sierra.ro/Teava-alama-D6-x-d5-x-1000-mm-p6216p.html?

Will it work? It could spare me from extra weight. It doesn't involve much force in the system.

Thank you,
Robert
7  Using Arduino / Interfacing w/ Software on the Computer / Re: Interfacing Arduino with PC on: April 29, 2013, 02:38:57 pm
Code:
dcbSerialParams.BaudRate=CBR_9600;
            dcbSerialParams.ByteSize=8;
            dcbSerialParams.StopBits=ONESTOPBIT;
            dcbSerialParams.Parity=NOPARITY;

This is the code I found in the library regarding the properties of the connection.
These instructions are executed after the connection to the port is made.

What properties on the instance? There's only one argument: the COM port name. Among this structor, there's also the destructor, the ReadData function which takes as arguments the string and the number of chars to read, the WriteData function which has as arguments the string -"-"-"- to write and a function IsConnected() which return 0 or 1 if there's a connection. The Arduino's baud rate is at 9600.

And for the record, the ONESTOPBIT and NOPARITY macros are defined as 0. I was surprised to see that ONESTOPBIT is actually 0 and not 1, as far as I know. So I change the .StopBits to 1. Unfortunately, I got the same results.

What other settings shall I do?

Thank you, again,
RobertEagle

EDIT:
There's one more thing I forgot to tell you. In the structor on the class, the argument is a char pointer called portName.
On the original file the code looked like this:
Code:
Serial::Serial(char *portName)
{
    //We're not yet connected
    this->connected = false;

    //Try to connect to the given port throuh CreateFile
    this->hSerial = CreateFile(portName,
    GENERIC_READ | GENERIC_WRITE,
    0,
    NULL,
    OPEN_EXISTING,
    FILE_ATTRIBUTE_NORMAL,
    NULL);
When I was compiling the code it gave me the error: "cannot convert parameter 1 from *char to LPCWSTR. So naturally I converted the portName in the CreateFile call to LPCWSTR. Is this change the problem of this code? If so, how can I fix it?
8  Using Arduino / Interfacing w/ Software on the Computer / Re: Interfacing Arduino with PC on: April 29, 2013, 11:33:02 am
Quote
Absolutely necessary and easy are not the same thing. I know, I have picky customers.
It would have been easy if I'd buy the Mega, but I didn't have the extra money. So "easy" is subjective topic.

Quote
Perhaps you need some superglue to attach the handle. You don't have the serial monitor open, do you?
I bought some glue, and I tried. It still doesn't work.

I'm just joking smiley-yell ! The serial monitor is not open.



Quote
Perhaps posting your code would be useful - for both ends.
Yes. You're right.
I have used the SerialClass library as you suggested. I've included the .h file in the code. The code looks like this.
Code:
#include <iostream>
#include <Windows.h>
#include "SerialClass.h"
using namespace std;

int main()
{
Serial serialPort("COM2");

char income[64];
Sleep(500);
if(serialPort.IsConnected())
{
serialPort.ReadData(income,64);
cout << income;
}

return 0;
}

And regarding the port, this is it.

Thank you,
RobertEagle
9  Using Arduino / Interfacing w/ Software on the Computer / Re: Interfacing Arduino with PC on: April 28, 2013, 02:18:56 pm
Quote
How is it going to do this?
The machine that's linked to the Arduino has a color sensor. Trough it's 3-servo arm and the other 4 arms for the Rubik's Cube, analyzes the cube.

Quote
Possible. Though not necessarily trivial.
It's absolutely necessary. The Arduino doesn't have that much memory for analyzing, filtering and orientation. It has just only for the orientation and data gathering and some other stuff, unfortunately smiley-sad.

Quote
How is the Arduino supposed to manipulate the Rubik's cube?
The Arduino is manipulating the Rubik's cube throughout it's 4 arms.

Passing this, I put the 2 files in the project, and run it. I'm sure that the Arduino port is open and set to COM2, but the code constantly tells me "ERROR. HANDLE wasn't attached. COM2 not available".
Do you know what would be the problem? I mean, I did what I was supposed to do, but it didn't work.

Thank you and hope I made you crystal clear,
RobertEagle
10  Using Arduino / Interfacing w/ Software on the Computer / Interfacing Arduino with PC on: April 28, 2013, 11:46:51 am
Hi,

I want to make an interface between an Arduino Leonardo and a PC using the Visual C++ 2010.
What I actually need is to make an exchange of information between these 2 devices. The Arduino shall send the Rubik's Cube state, the PC shall find the solution and then send it back to the Arduino to execute it.

I don't want to complicate myself and go using the libusb. What I need is a simple and easy method for having a write, read, isBuffer etc functions for the PC. Do you know how can I do this in Visual C++?

Thank you,
RobertEagle
11  Using Arduino / Project Guidance / Re: Arduino Leonardo Stupid Bug on: April 28, 2013, 09:48:03 am
It doesn't matter anymore which pin is how, which instruction is where, or anything related to this.

I found the problem. I was running on the Arduino IDE 1.0.1. I got the new 1.0.4 and it worked. It seemed that the old version didn't go well with the library and the Leonardo. It wasn't a problem of wiring or code, but a problem of version.

I withdraw any bad marks that I gave Arduino,
RobertEagle
12  Using Arduino / Project Guidance / Re: Arduino Leonardo Stupid Bug on: April 26, 2013, 11:28:51 am
The truth is that I have provided you the source code. It's just at 1 click away. I've mentioned earlier the link to the bildr tutorial.
That tutorial has both the library and the Arduino example.

Here's again the project: http://bildr.org/?s=s311
13  Using Arduino / Project Guidance / Re: Arduino Leonardo Stupid Bug on: April 26, 2013, 09:14:21 am
I'm sorry that I haven't mentioned already that the SDA/SCL pins are connected in the proper way. Also the LED pin is on 5.

THIS bildr project works flawless on the UNO R3, but not on the Leonardo. I don't have the money to buy a new one.
14  Using Arduino / Project Guidance / Arduino Leonardo Stupid Bug on: April 26, 2013, 08:37:06 am
Hi all, again

I have posted some days ago a couple of topics regarding an Arduino Leonardo. None knew what needed to do.
The problem was that I couldn't get the sensory data from my sensor. It didn't read. The monitor was blank. No numbers. Nothing.

Regarding the sensor:
EVERYTHING it's made just as on the bildr tutorial. Don't ask what and how I did, because all the instructions are on bildr.com

So I went at my local retailer, thinking it was burned (the sensor).
There, at first, the same problem. It didn't worked. It hang out on the I2C. But then it worked somehow by removing the Serial.begin and other Serial.prints from the sensor class. Then it worked.

I got home, happy, I've connected it to my PC, and voila, everything was working like a charm.
To be sure that it's nothing wrong with it, I've reuploaded the SAME code it was on the Arduino at that moment. Then, NOTHING. It didn't work again. I don't have to mention that from that moment, I got only errors when I try to upload to my Arduino. Errors like "USB not recognized" and all this sorts of things. I have a 1/10 chance of having a successful upload (I have Win7 32-bit)

IT'S OBVIOUS that there's nothing wrong with the solderings and the sensor. It's something wrong with the Arduino.
What kind of Arduino is this? I mean, when I buy Arduino, I have some claims. It's a board that's recognized as a product that's easy to use and is bug-free. In this case, Arduino suggests not to be bought.

Can someone explain me what's the problem with this board? You know, I've spend so money to buy it, and I expect something in return.

And here's the library for my ADJDS311 sensor: http://bildr.org/?s=s311

RobertEagle
15  Using Arduino / Programming Questions / Re: Arduino Leonardo Communication Issue on: April 22, 2013, 12:39:50 pm
Based on what I have rechecked, is that the program somehow hangs at the Wire.endTransmission() at some points.
Do you know, why the Arduino would do that?
Pages: [1] 2 3 ... 11