Show Posts
Pages: [1] 2
1  Using Arduino / Project Guidance / Re: Arduino UNO Pinout Diagram on: February 13, 2013, 07:34:57 am
Great work Romano, thanks for taking time to generate the graphics and then to share as well.


Peter B.
2  Topics / Device Hacking / Re: Brushed Motor Control through ESC on: January 29, 2011, 07:09:31 am
The ESC looks like a standard pulse position control device, the standard servo library should drive this fine.
What connections have you made from Arduino to the ESC, The ESC has  RED, Black and White wires to go to a normal RC receiver where did you connect these wires on the Arduino?
If you have an oscilloscope you should see the pulse on your PWN pin go from 1ms to 2ms apart to cover the range of the conroller. 1.5ms is the neutral position.
What type or Arduino are you using and which PWN pin did you use for the ESC control signal?

... peter b.

3  Forum 2005-2010 (read only) / Syntax & Programs / Re: Bit Shift Tutorial - Question. on: October 29, 2010, 07:04:03 am

Thanks also to you. But why would you do it that way? to save a few keystrokes or what!
Does it save memory if you use shorter notation to get the result?

Peter B.
4  Forum 2005-2010 (read only) / Syntax & Programs / Re: Bit Shift Tutorial - Question. on: October 29, 2010, 06:59:16 am

OK thanks, every time I write a new piece of code or interpret someone else's efforts I learn a new way of doing things.
Thank you for the shortcut statement.


Peter B.
5  Forum 2005-2010 (read only) / Syntax & Programs / Re: Bit Shift Tutorial - Question. on: October 29, 2010, 06:05:53 am

Thanks for the follow up, however I am not sure what the line
[glow] digitalWrite(tx, ((data & bit_mask) ? HIGH : LOW));[/glow] is attempting to do.
I guess this is where you are anding the mask with the data, but what is the [glow]? HIGH : LOW[/glow] doing?


Peter B.
6  Forum 2005-2010 (read only) / Syntax & Programs / Re: Bit Shift Tutorial - Question. on: October 28, 2010, 04:40:39 pm
Groove and PaulS;
Thanks for your response, I had missed the point about the 8th left shift operation will mean that mask will then be equal to 0. Seems obvious now.


Peter B.

7  Forum 2005-2010 (read only) / Syntax & Programs / Bit Shift Tutorial - Question. on: October 28, 2010, 06:36:00 am
I am working through Heather Dewey-Hagborg's tutorial on software serial and can mostly follow along except for the bit highlighted below.
I am struggling to understand how the for loop will iterate through 8 bits by the use of the mask  and bit shift statement.  
As far as I can tell mask will always be greater than 0 so this loop will never end.
I have run this code and it works  so what am I not understanding about this for loop?
Any one here care to shed some light to help my brain with this?


Peter B.

void SWprint(int data)
  byte mask;
 [glow] for (mask = 0x01; mask>0; mask <<= 1) [/glow]{
    if (data & mask){ // choose bit
     digitalWrite(tx,HIGH); // send 1
     digitalWrite(tx,LOW); // send 0
8  Forum 2005-2010 (read only) / Development / Re: Library for DS1307 Real Time Clock on: May 12, 2010, 07:17:54 am
I'm trying to compile the RTC example from the reference library and I am getting a complie error like "C:\DOCUME~1\Peter\LOCALS~1\Temp\build1739880429809810608.tmp/TimeRTC.cpp:18: undefined reference to `setSyncProvider(unsigned long (*)())' "

I think this is because I have the DS1307.cpp and DS1307.h files in the wrong folders, antone here can point me in the right direction.
There is advice that says they should be in the arduino\hardware\libraries\DS1307 folder which I must create?
Why do they not go into the main libraries folder with the rest of the provided libraries?
Apologies if this stuff has been covered elsewhere. :-X

Peter B.
9  Forum 2005-2010 (read only) / Troubleshooting / Re: Electrical Question ... 220v power on 110v on: July 29, 2010, 07:07:18 am
If they are switchers then the frequency will not matter as much, still curious why they don't run at 120V.
how heavy do they fell are they about 0.5 Kg or more then if so they are most likely analogue supplies with a heavy wound transformer on the input side.
You best option in this case would be to use a 110 - 220 step up transformer on the input (mains) side, transformers such as this are available from most parts distributors including Farnell and RS.
Ideally this transformer should be designed for the mains frequency in your country are you 50Hz or 60Hz ?

Peter B.
10  Forum 2005-2010 (read only) / Development / Re: CCW of BLDC on: January 17, 2011, 06:45:02 am
There is an excellent tutorial on how to control BLDC motors at;

The short answer is you can change direction with code or by swapping ant two wires as noted elsewhere in this thread.

Peter B.
11  Forum 2005-2010 (read only) / Interfacing / Re: Problem reading serial data on: October 28, 2010, 06:13:11 am
True; the picture does not help much but the statement that it works fine with a PC serial port means that it is probably putting out RS232 levels.
Therefore you will need the MAX232 level converter chip or something similar to get these signals into the Arduino.

The circuit you supplied for your MAX232 implementation is OK.
I would look to the pin mode statements in your code, as pointed out elsewhere if you are using softserial this is already taken care of.


Peter B.
12  Forum 2005-2010 (read only) / News / Re: Arduino 0018 now available. on: May 25, 2010, 08:04:30 am
The link you provided tells you to download the MAC OSX file and then install the USB drivers.

Copy the Arduino application into the Applications folder (or elsewhere on your computer).

This works fine but I still only end up with the file and no subfolders.

If you can't run from the DMG (disk image) file then how do you get the new IDE?

Thanks for your patience with this, its driving me a bit crazy...


Peter B.
13  Forum 2005-2010 (read only) / News / Re: Arduino 0018 now available. on: May 24, 2010, 07:23:40 am

Ok thanks - so now I have the arduino-0018.dmg file in my applications folder.
My options seem to be limited to open the file with the diskimage, but I think you said don't  do that.


So where to now.
If I do let the diskimage mounter run then I end up with the which does run but still no sub folders for libraries, examples etc.
Clearly I am doing something wrong here or neglecting to do something right. I did manage to get v11, v13, & v16 all setup without any issues.
Is there something different with v18 ?

Peter B.

14  Forum 2005-2010 (read only) / News / Re: Arduino 0018 now available. on: May 23, 2010, 01:36:39 am
I have just downloaded v18 of the IDE for MAC. and mounted the dmg file. I can run the environment but all the sub folders seem to be missing.
I had a trawl through my HDD with spotlight but can only find the older v16 folders.
Anyone else here seen this?

thanks Peter B. :
15  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: How do I install Arduino 0018 on  Mac OS on: June 03, 2010, 06:26:40 am

Thank you; that is the most coherent answer to this question so far.
I've learned that it works quite well and is no big deal, thanks for your interest.


Pages: [1] 2