Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Re: Where to start? on: July 30, 2011, 12:30:31 pm
I'm aware that Javascript is NOT Java.
That being said:

I've already done a test with a Arduino -> (USB) -> PC -> Ethernet -> PC.
This worked out OK, but the GUI sucked ass cuz on PC#2 I run it through a browser.

Now I intend to do a more advanced test.
I know about the IP and Firewall issues, I'm not completely green with this, I'm gonna use NAT to route some ports to a specified IP on an internal network on both sides. Also make a firewall exception if needed.

Though, what I'd really want (and haven't tried yet) is to have the target IP resolved by DNS.
Thereby having the host PC connect with some opendns, so I can autoresolve IP adress from the client.
But this is further down the road.
2  Using Arduino / Programming Questions / Re: Where to start? on: July 30, 2011, 10:46:41 am
This is great news!

I've actually just aquired an ethernet shield for my arduino, so now I'm going to start making a GUI for communication over ethernet.
( I've previously made one for communicating over ethernet and through USB) :

Arduino - <USB> - PC #1 - <Ethernet connection> - PC #2
Though, this GUI basically sucked as it was Javascript and I didn't know then what you told me now.

Now I intend to just run

Ardunio - <Ethernet connection> - PC

and in the long run:

Arduino - <Ethernet connection > - Internet router - <Internet> - Internet router - <Ethernet connection> - PC
3  Using Arduino / Programming Questions / Re: Where to start? on: July 30, 2011, 09:40:17 am
Ok, so if I use C, where do I start with this?

What I need is basically a GUI for my Arduino. Though, I don't want to rely on others, so I need to make this myself.

I've been using processing, but this turns out stupid, cuz it runs ok as long as I'm running it in the processing program, but if I attempt to open the java file I've made directly, It will open in my browser and be all fucked up. (Meaning indicators mostly doesn't work)

4  Using Arduino / Programming Questions / Where to start? on: July 29, 2011, 09:36:55 pm
I've been using an arduino for a while. Gotten alot of useful javascript experience.
Allthough, to me this is a rather limited language, and I don't really imagine it being a good interface to communicate with an Arduino or microcontroller via pc.

Sure, the Arduino could run Javascript, but I don't want to have to be running "Processing" (as I have so faar) or similar to get some sort of input/output option.

So I aquired Visual Studio. Unfortunately, I don't know where to start.
Is Visual C a good language to learn for this? And if so, where do I start with this?
5  Community / Exhibition / Gallery / Re: Not another RFID Arduino keyless entry... :) on: July 23, 2011, 05:43:07 pm
I might be a bit late on this, but just a tip: you should probably build in some sort of backup system.
Failsafe in case of:
1: Power's out in your apartment: arduino/rfid stuff has no power.
2: Arduino program failure (Even though you're probably a great programmer, this might still happen).
3: Mechanical/Wire failure (A wire slips loose/ the wire to the handle snaps, etc)

Otherwise, very well done!
Sparkfun is also my favorite store.
6  Using Arduino / Motors, Mechanics, and Power / Re: my first big project - BMS - is it possible? on: July 22, 2011, 04:29:18 pm
I'm no expert, but as faar as I know, theres ways of getting more digital and analog inputs, by buying certain chips. I've not gotten to the input part yet, but I will.
Right now I'm working on using several outputs. I figured out how to link shift registers and thereby use 3 digital ports to run 320+ outputs on 3 digital ports.

Your idea should be possible. Though I'm wondering what kind of output system you're thinking of having?
I recommend either LCD, or 7 segment displays.

I haven't gotten into LCD's yet, and i believe they're harder to set up and program.
7 segment, 4 digit displays are easier to manage then I thought. Just don't get stuck in the thought that
 "I don't get the different digits to show different values".

If you just want a graph output, there's the led bars. Though, you'd probably need lots of outputs for these as well.

7  Using Arduino / LEDs and Multiplexing / Re: Multiplex 30 outputs from arduino to control RGB LEDs? on: July 22, 2011, 03:18:57 pm
I might be going out on a limb here, but what about using a 74HC595 shift register chip setup?

I just started using several outputs, and it amazes me how easy the shift register is to set up and use, and once I need more outputs, I just connect one more to the previous one, and it doesn't need more outputs from the microcontroller.

You just need 3 digital outputs and you can chain like 40+ together, 8 output each.
8  Using Arduino / Motors, Mechanics, and Power / Re: Bigger vehicle? on: July 22, 2011, 03:16:26 pm
Yea, actually, that's just about what I was going for. Though it doesn't say how he built it, and I'd like to know how to build your own tracks and where to get the wheels for the tracks.
9  Using Arduino / Project Guidance / Re: Problem with numbers... again on: July 21, 2011, 04:47:09 pm
Thanks, but I actually figured it out before your post, ludr.

I was fooling myself until AWOL replied.
I made the wrong calculations by thinking the variable would be floating.

Once AWOL said it wasn't, the rest was pretty straight forward.

This is one of the paragraphs: (it works btw)

        if ( counter >= 1000 && counter < 10000)
            input1 = analogvalue / 1000;
            input2 = (analogvalue / 100) - (input1 * 10 );
            input3 = (analogvalue / 10) - (input1 * 100) - (input2 * 10);
            input4 = (analogvalue - (input1 * 1000) - (input2 * 100) - (input3 * 10));
10  Using Arduino / Motors, Mechanics, and Power / Re: Bigger vehicle? on: July 21, 2011, 03:07:03 pm
Hi all, and thanks for all replies.

As I don't have equipment for forming, cutting og welding metals here, I was thinking to make a body vehicle body out of wood and bolts, screwed around a girder chassi. Everything bolted together, isolated and painted.

Unfortunately I still need tracks.

Graynomad: Thanks!

The 3,5 " tracks there is right up my alley, except 7 " would be alot better.

Do you think you could link 2 x 3,5 " besides eachother, on the same mounting, to make a 7" track?
11  Using Arduino / Project Guidance / Problem with numbers... again on: July 21, 2011, 02:46:27 pm
Now I got the opposite problem of what I had yesterday.

I got a number between 1 and 1000.
This number needs to be seperated into 4 different numbers.


needs to become 1, 3, 3, 7.

I've tried dividing:

Like so:

Number 1 = 1337 / 1000 = 1,337

Number 2 = 1337 / 100 = 13,37 (here's the problem)

I'm stuck with 13,37.
I figured, if I write
int x = 0;
if ((1337 / 100) >= 10 && (1337 / 100) < 20)
x = 1;

and have number 2 = (1337-100)-(10 * x);

But doing this 10 times for every digits seems an awful lots of waste of time and coding space to do for something that should be alot simpler.

Short said: I need to round off the number, down. I need to get rid of whatever there is of decimals and just round every decimal down to 0.

12  Using Arduino / Motors, Mechanics, and Power / Re: Bigger vehicle? on: July 21, 2011, 07:39:44 am
Yea...... well I'm unfortunately not in possession of neither a blowtorch or welding equipment.
13  Using Arduino / Programming Questions / Re: How to read spesific numbers? on: July 21, 2011, 07:07:21 am
So you want to make a string into a complete number?

char yourstring[5] smiley-cry'1', '2', '3', '4'];

and have the output be = 1234?
14  Using Arduino / Motors, Mechanics, and Power / Bigger vehicle? on: July 21, 2011, 07:02:03 am
I wish to build a bigger type of arduino controlled vehicle.
Unfortunatly, it appears the only wheels and tracks there is to be found, are at a size of this:

I want to build a vehicle to drive in an outdoor enviroment. Preferably with tracks. Unfortunatly, the models I find (as the one in the link above) are rather small, and would probably stall at the first rock or bump.
Anyone know where to start?
15  Using Arduino / Programming Questions / Re: How to read spesific numbers? on: July 20, 2011, 12:48:10 pm
Then comes my next question:
Except writing a program in say.. processing, what is the shortest way to get the Arduino to understand a 1 (Byte) as a 1 (text) ?

If I use the Serial Monitor, I will be sending 1337 as BYTE.
I need to be receiving it like plain text.

Either that, or I'm going to need to start using processing again, to test this out.
Pages: [1] 2