Recent Posts

Pages: 1 ... 5 6 7 8 9 10
61
Software / Re: Port Manipulation - Pulse Counter
« Last post by mklrobo on July 14, 2015, 12:55:16 PM »
 ;D Hello!
Your code, as I interpret, logically;

assigned the variable pulses;
volatile unsigned int pulses = 0;
void count() {
  // This function is called
  pulses++;
}
count function to get variable pulses to count 1 every time count() is called.

void setup() {
 
   DDRD &= ~(1<<PD6); //set pin 49 as input

   Serial.begin(9600);
}
Setup the pin 49 as an input; Serial.begin opens a function for 9600 transmission(?)

void loop() {
  if (PIND & (1 <<PD6)) {
            count (); }     
  Serial.println( pulses );
}
loop() function detects a "1" on pin 49, calls the count function, then prints the amount of whatever is in
the variable pulses.


logically, it looks good; the only problem I see is the println call; where in C should be printn; unless this
command is "print line" command.
What is the output, or errors given? The only other problem I would contemplate is the pin assignment
commands, in which I do not have knowledge of.(at this time,  ;) )
62
Mechanics and Construction / Re: My Advanced Realistic Humanoid Robot Project
« Last post by artbyrobot1 on July 14, 2015, 12:01:33 PM »
Thanks for finding that battery suggestion!  I'm aiming to just run off a wall power outlet for many years to come and not worry about batteries.  I'm not going to design room for batteries inside the robot body as I already have a huge amount of space need for all the servos and sensors and wires and stuff.  Therefore, I'm going to put batteries into a backpack like Asimo does.  I won't even worry about that for many years well after the robot is finished will I worry about batteries in his backpack to make him mobile beyond where his power cord will reach.
63
Software / Port Manipulation - Pulse Counter
« Last post by derlone on July 14, 2015, 10:24:11 AM »
I'm trying to do a counter of pulses and I can not use digitalRead nor Interrupts. The speed of pulses I am getting is too fast, and that is why I am planning to use port manipulation. I am using arduino ATmega 2560. The code I have so far and that is not working is this:

Code: [Select]
volatile unsigned int pulses = 0;
void count() {
  // This function is called
  pulses++;
}
void setup() {
 
   DDRD &= ~(1<<PD6); //set pin 49 as input

   Serial.begin(9600);
}
void loop() {
  if (PIND & (1 <<PD6)) {
            count (); }     
  Serial.println( pulses );
}
64
Mechanics and Construction / Re: My Advanced Realistic Humanoid Robot Project
« Last post by mklrobo on July 13, 2015, 01:41:07 PM »
 :o OK! I found the Pen car starter!  :o
The size of a small handheld radio, brand name, Powerplus.
It is a 13600 MaH battery!  It says it has a 500 Ampere peak current output!
Unreal, if it is true.  ::) 5 of these in your robot, could possible give it enough power
to run a humanoid body!  ??? They are compact enough to fit into the body, with enough
power in parallel to run the servos and CPU for awhile. you may have to "stuff" batteries in the
legs, arms, or anywhere you can to squeeze out all the available power per area you can get.
So, the lesson to learn from this, is power available per area Vs. power used per area. that would
seem to be a good "rule of thumb" to use when calculating the body of the robot. To generalize,
computing the square footage of a house, to obtain the maximum living space, as cost per foot.
Just a thought. ;)
65
Misc / [advertisement] Sitewide sale at ServoCity - everything 15% off
« Last post by ServoCity on July 13, 2015, 08:52:54 AM »


Today is National Embrace your Geekness Day - and we are celebrating! Now thru Thursday, get 15% off ALL THE THINGS at ServoCity. Whether you need an actuator, a servo extension, a motor, a speed controller, a robot kit (we could go on forever, but there are 3500+ products on our site) - it's on sale!  All of it. Everything. This type of offer doesn't happen often, so stock up and save big.  Oh, and tell your friends too, they'll appreciate it!

To shop our site, click on the link below.
https://www.servocity.com/index.html

66
Mechanics and Construction / Most accurate and reliable mini servo
« Last post by foul_owl on July 12, 2015, 06:59:33 PM »
Hi folks,

Looking for a 9g servo, but a similar weight would be acceptable as well. I need the most accurate and reliable servo available. Torque and speed do not matter. Sadly, I can't seem to find any sort of specs on accuracy, and of course it's hard to gauge reliability. I originally tried an HXT900, but it would stutter and and sometimes not move correctly. When it worked, it would work great, but I think the plastic gears must have gotten stripped.

I am now looking at Turnigy TGY-50090M since it uses all metal gears.

Using an arduino + ramps aux pins + 5v vcc for control.

Any advice would be very helpful.

Thanks!!
67
Mechanics and Construction / Re: My Advanced Realistic Humanoid Robot Project
« Last post by mklrobo on July 12, 2015, 11:43:33 AM »
 8) Awesome!  8)
I appreciate your feedback. I have covered some of the items we have talked about in my posts
in the misc section in this forum, Analyzing the Axon: Coding, Construction, and Contraptions.
I wish you well on your building. I usually do my "best" work on Friday/Saturday nights, eating pizza and watching old Creature Feature movies, or a science fiction robotic based movie. Sometimes, I have friends
over to "work" on the robots/MCU/Linux while we watch the movies and have a nerd fest. Good times,
Good times.   ;D ;D ;D
68
Software / Re: Complexity of robot vision
« Last post by artbyrobot1 on July 12, 2015, 08:48:01 AM »
In my experience with image recognition algorithm making, I had the robot turn each pixel of the image into a rgb number and then if that number matched the color it is looking for, it called that pixel a 1.  If the color did not match the color it was looking for it called that pixel a 0.  In this way, it turned images into a series of 1's and 0's and then it compared that with the list of objects on file who were also in 1's and 0's form to see if the 1's and zeros within that image matched.  If they did, he knew what object he was looking at.  You can also set it to call it a match if it was within 95% of the desired 1's and 0's pattern it was looking form.  This was a simple solution but enabled me to teach the robot to read, identify objects on screen, etc...
69
Mechanics and Construction / Re: My Advanced Realistic Humanoid Robot Project
« Last post by artbyrobot1 on July 11, 2015, 06:36:46 PM »
"as long as your construction info is available everyone can use something"

I agree!  I'm planning to go to great lengths to record all of my methods to share with others in an open source way.



"The only bad thing about the standalone robots, are the batteries!"

My plan is to have the robot run off of a power cable from wall outlets and when he needs to switch rooms he unplugs himself, staps on a backpack loaded with batteries, plugs that in, unplugs his power cable, walks to the next room, plugs his power cable back in and sets his battery backpack onto the ground till he needs it again to change rooms again.  So the batteries will be designed to not be built inside of him.  I got this idea from Asimo.



"I would recommend using a wheelchair for your robot to begin with."

Awesome idea!  Never considered that and I can see alot of advantages.  I'm so glad you are here giving me guidance!



"drivers/software plan"

I've planned the brains/software alot as well.  I'm going to have a laptop or powerful tablet or two in the chest of the robot running the main logic engines and am going to interface those with arduinos for lower level functionality and from the arduinos to servomotor controllers of course and from those into the servos.  Plus I'm going to have mostly likely over 100 sensors.
70
Mechanics and Construction / Re: My Advanced Realistic Humanoid Robot Project
« Last post by mklrobo on July 11, 2015, 02:24:09 PM »
 :) Hello!
In reference to your mechanical structure, I have found the following, thus far.  ???
The kimatic schematic, or mechanical support structure, will need addressing. I have been
working on a Free Body Diagram, to deal with weight distribution. Strengths of materials,
types of materials used, and work ergonomics fall into the design.
I had planned to use the an old Hero Jr. robot for the beginning. Simple programming would
suffice to build upon, as well as the servo and environmental needs( following the functions like
the robots used in
Silent Running). This would support the droid plan for 3 minions to
one supervisor.(home/garden automation, also somewhat personal assistants.(?)  8) )
The next advancement is a modification to the hero structure, a Super-Hero !
This phase would have arms, legs, wheels, built on the functions of the previous model.
Not a huminoid, by any stretch of the imagination, but gives functionality to the members added,
without sacrificing mechanical structure integrity. So, basically, I am using a standard body most
everybody is familiar with, and building upon that, to be an open source robot.
The body remains standard, with legs/arms that can be modified, then jacked into the main robot
where needed; with arm software upgrade.(need a new driver for the arm/leg)
Also, there will be a need for software member driver support, and the need for support of drivers for
sub - processor will be needed. This is why working together, like the Linux community, is important. A lot to think about, when building a robotic superstructure, don't you agree?    ;)
Pages: 1 ... 5 6 7 8 9 10

Get Your Ad Here