Runboard.com
Слава Україні!
Community logo


runboard.com       Sign up (learn about it) | Sign in (lost password?)

Page:  1  2  3  4 

 
YT2095 Profile
Live feed
Blog
Friends
Miscellaneous info

Freebander

Registered: 12-2010
Location: the Black Country
Posts: 188
Karma: 1 (+1/-0)
Reply | Quote
Re: Arduino project chat


Neat, although I am curious why you used your own fixed constants to factor the voltage levels, instead of the MAP command to do all the maths for you?

here you wrote: int valueHundrethsOfMilliVolts=((voltage % 102)*10)/90;

if you`de have used MAP all you need to do is plug in the constraints, and all the division is done for you on the fly, even if there are changes.

check here: http://arduino.cc/en/Reference/Map

I could be wrong since I`m fairly new to this lang, but it Looks to me like MAP would work nicely, rather than you work out the maths manually and then perform functions using them.
just a thought emoticon

---
I`m also on Twitter as "YT2095" ;)
29/Dec/2010, 10:58 am Link to this post Send Email to YT2095   Send PM to YT2095 Blog
 
YT2095 Profile
Live feed
Blog
Friends
Miscellaneous info

Freebander

Registered: 12-2010
Location: the Black Country
Posts: 188
Karma: 1 (+1/-0)
Reply | Quote
Re: Arduino project chat


also, here is a simple software prototyping board(s) that I knocked up to test a few things out, LEDs for the outputs, but thatey could easily be a transistor and relay or the servos etc...
the 7400 chip is basically used as a buffer for pins 0 and 1, used for RX and TX respectively, and also as a driver for the small speaker that allows me to listen to the data being sent over the Serial.
the input side is simply an array of 8x 1K pots wiper via a 470Ohm resistor to each input pin, and the pot sides are GND and +5v.

the 2 flying leads are for running it off a 12v SLA batt.

Image

Image



---
I`m also on Twitter as "YT2095" ;)
29/Dec/2010, 1:00 pm Link to this post Send Email to YT2095   Send PM to YT2095 Blog
 
26FB1981 Profile
Live feed
Blog
Friends
Miscellaneous info



Registered: 10-2010
Location: Hertfordshire
Posts: 73
Karma: 0 (+0/-0)
Reply | Quote
Re: Arduino project chat


quote:

YT2095 wrote:

Neat, although I am curious why you used your own fixed constants to factor the voltage levels, instead of the MAP command to do all the maths for you?

here you wrote: int valueHundrethsOfMilliVolts=((voltage % 102)*10)/90;

if you`de have used MAP all you need to do is plug in the constraints, and all the division is done for you on the fly, even if there are changes.

check here: http://arduino.cc/en/Reference/Map

I could be wrong since I`m fairly new to this lang, but it Looks to me like MAP would work nicely, rather than you work out the maths manually and then perform functions using them.
just a thought emoticon




TBH i hadnt even seen that 'MAP' function before now. However, the reason i did it in that way, is that it gives you a true voltage reading to display in hyperterminal and not just a proportional number between 0 and 255. So if the line being measured ( with a DMM) is say 12.4v , thats what the output will say from the Arduino.
Thanks for the tip and i will give it a go and see if i can get it to give the same results emoticon


Last edited by 26FB1981, 29/Dec/2010, 3:14 pm
29/Dec/2010, 3:11 pm Link to this post Send Email to 26FB1981   Send PM to 26FB1981 Blog
 
YT2095 Profile
Live feed
Blog
Friends
Miscellaneous info

Freebander

Registered: 12-2010
Location: the Black Country
Posts: 188
Karma: 1 (+1/-0)
Reply | Quote
Re: Arduino project chat


I see what you mean, and you could well be right, but it`s worth a shot just to see what it scales it as.
as I said I`m relatively new to this Specific type of code (less than 1 week in fact), but I Did try it on a bargraph program and introduced new LEDs to the mix and it scaled it perfectly (but my resolution was somewhat less demanding).
have a mess about anyway, I`de be interested to see if A) you get it working the same (better/worse) and if it uses less bytes in the overall compilation.

at the moment I`m struggling with a few ideas for wireless control here, do I get the APC 220 or the likes, or try to configure a wireless router and get an ethernet card for the arduino???
can you even Buy ethernet-direct webcams? HDDS? etc... seems a pity not to use the other 3 remaining ports emoticon

I`d really appreciate your opinions and/or ideas in this area, at the moment I`m sort of Lost emoticon
 



---
I`m also on Twitter as "YT2095" ;)
29/Dec/2010, 4:31 pm Link to this post Send Email to YT2095   Send PM to YT2095 Blog
 
26FB1981 Profile
Live feed
Blog
Friends
Miscellaneous info



Registered: 10-2010
Location: Hertfordshire
Posts: 73
Karma: 0 (+0/-0)
Reply | Quote
Re: Arduino project chat


I bought an Ethernet 'sheild' but have not experimented with it yet. There is also a Zigbee module that can be bought fairly cheaply for wireless comms.

There are lots of examples of what people have done with these types of devices on the net, are are great for sparking ideas or giving a bit of guidance when we get stuck on that all important bit of code emoticon

Good luck emoticon
6/Jan/2011, 6:51 pm Link to this post Send Email to 26FB1981   Send PM to 26FB1981 Blog
 
YT2095 Profile
Live feed
Blog
Friends
Miscellaneous info

Freebander

Registered: 12-2010
Location: the Black Country
Posts: 188
Karma: 1 (+1/-0)
Reply | Quote
Re: Arduino project chat


Well... Currently I`m having "Problems" with crap gear from (you probably guessed it...) eBay sellers.
A) and 1, the Robot had 2 broken servos NOT mentioned!

B) and 2, the Replacement Metal Geared servos that took me a good half a day to fit because I had to modify the robot chassis and associated parts, one of them turned out to be a complete NAIL! after a few movements, the other one is fine though and they are BOTH on the same servo controller and 6v Batt supply.
this "Nail" just gets HOT now, actually Uncomfortable to touch after about 3 mins of doing Nothing.

the Servo controller although Good, is not Quite what I was hoping for as well, although in Fairness the controller isn`t the real problem but rather the S/ware that comes with it is rubbish, so I`v had to spend Again on a better one (Used in Animatronics), as it has a Memory for "macros".

in a nutshell I`m really rather disappointed!


oh well, Keep Calm and Carry On!

---
I`m also on Twitter as "YT2095" ;)
6/Jan/2011, 8:31 pm Link to this post Send Email to YT2095   Send PM to YT2095 Blog
 
30fb001 Profile
Live feed
Blog
Friends
Miscellaneous info

Freebander

Registered: 07-2009
Posts: 74
Karma: 0 (+0/-0)
Reply | Quote
Re: Arduino project chat


Im scared.

After you started this post I did google for arduino.

This remains me twenty years ago learning BASIC and just sleeping two hours before going to work because I spent the whole night entering code in my ZX Spectrum...

Plan this evening to buy my first arduino pcb.
(Yes, youre right, my wife is going to kill me :-)

I found this link with very basic code tutorial for begginers, http://www.lulu.com/items/volume_63/1108000/1108699/4/print/ARDUINO_NOTEBOOKv6.pdf

73 de Juan

10/Jan/2011, 2:01 pm Link to this post Send Email to 30fb001   Send PM to 30fb001
 
26FB1981 Profile
Live feed
Blog
Friends
Miscellaneous info



Registered: 10-2010
Location: Hertfordshire
Posts: 73
Karma: 0 (+0/-0)
Reply | Quote
Re: Arduino project chat


Thats excellent info in that booklet emoticon

Good luck with ya projects..............

































oh and ya wife emoticon emoticon
11/Jan/2011, 8:57 pm Link to this post Send Email to 26FB1981   Send PM to 26FB1981 Blog
 
30fb001 Profile
Live feed
Blog
Friends
Miscellaneous info

Freebander

Registered: 07-2009
Posts: 74
Karma: 0 (+0/-0)
Reply | Quote
Re: Arduino project chat


You said: "Good luck.."

Tks, Ill need it. And also, Ill need A LOT OF HELP from you.

Im want to develepe the concept of free software and freehardware from the beginning, maybe thats why Im a freebander and a Linux user... lol

So, Ladies and Gentelmen, Im proud to introduce to you my "BDRUINO", "A freebanding concept of Ardruino".

With your help and my junkbox, we will do.

I didnt order the Arduino board, Its about 30 Euros including VAT and shipping. A bit expensive for me when my junkbox is plenty of resistors an capacitors.

So I decided to keep costs as minimal as possible and use recicled components, my brain and your help. I had ordered only the ATmega328.

The whole thing will be on a spare breadboard, no USB interface (Its expensive).
I have a MAX232 chip in my junkbox and my old laptop has a serial port. Im a lucky man lol

So, first question. The ATmega328 chip comes with a bootloader, ¿Do u know if this bootloader is compatible with Arduino standar board setup? Lets think about the oscilator, I dont know if this bootloader included on the ATmega328 is set to EXTERNAL 16Mhz as required on he Arduino board, or maybe, set to internal...(Another problem is that I dont have a 16Mhz xtal in my junkbox, but I found a 18Mhz xtal..)

I dont have an AVR programming device and I dont want to buy a new one if I have to burn a new bootloader to the ATmega328 before to start with the Arduino board.

73 de Juan

If somebody ask why Im wasting so much time with Arduino, the answer is that my Arduino device will be able to read the frecuency from my FT-817 and then via a servomotor move the variable capacitor of my MagLoop antena for the max reception and lowest SWR :-)


Last edited by 30fb001, 14/Jan/2011, 12:22 pm
14/Jan/2011, 12:11 pm Link to this post Send Email to 30fb001   Send PM to 30fb001
 
YT2095 Profile
Live feed
Blog
Friends
Miscellaneous info

Freebander

Registered: 12-2010
Location: the Black Country
Posts: 188
Karma: 1 (+1/-0)
Reply | Quote
Re: Arduino project chat


here: http://cgi.ebay.co.uk/16MHz-16-MHz-Quartz-Crystal-Resonator-oscillator-x20-/150409317765?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item2305180d85
I`v just bought 20 of them myself.

I`ll chat more latter emoticon

Last edited by YT2095, 14/Jan/2011, 3:20 pm


---
I`m also on Twitter as "YT2095" ;)
14/Jan/2011, 3:17 pm Link to this post Send Email to YT2095   Send PM to YT2095 Blog
 


Add a reply

Page:  1  2  3  4 





You are not logged in (login)