Show Posts
Pages: [1] 2 3 4
1  Using Arduino / Project Guidance / Re: arduino +100Mhz radio jammer on: February 24, 2013, 08:13:41 am
This is the "Project Guidance" section, so if I picked the wrong band to mess with jamming to learn from then tell me. Dont jump on my case because you dont know US laws or how the country's laws work.

A lot of you are more bent out of shape on RF bands than realizing that some home made circuit's can also outputting interference. How many of you test every circuit you build? 5% of the people on this forum actually test for that, or less?
If the FCC went around checking interference they would find appliances shorting out in homes producing interference. Your PC is one program away from being a jammer, yes its that easy!

Yes they know I have a brass set and the one is bigger then the other two.
2  Using Arduino / Project Guidance / Re: arduino +100Mhz radio jammer on: February 23, 2013, 12:13:12 pm
The FCC may issue a permit that waives the law for private use.
3  Using Arduino / Project Guidance / Re: arduino +100Mhz radio jammer on: February 23, 2013, 08:10:54 am
http://en.wikipedia.org/wiki/Microchip_implant_(human)#Legislation
4  Using Arduino / Project Guidance / Re: arduino +100hz radio jammer on: February 23, 2013, 07:53:27 am
I meant  around 100Mhz  or so.

where I'm from the federal laws say its illegal, but the state laws point to it being legal. Even laser jammers are legal where I'm from.

Isn't it funny how the state of California legalized a federally band substance? Then told the federal government that law dose not apply here. That's because the states tell the federal government what to do its always been like that and it has to stay like that. Unless you want to be a slave.



I don't know where you get your legal advice but your source is just plain wrong. The FCC (F as in Federal) has all jurisdiction of RF laws, the States have absolutely no jurisdiction to change or even supplement the FCC rules and regulations.

Lefty  (WA6TKD amateur extra class)



No they dont! Some states have band RF ID tag implants in humans. What does the FCC have to say about that?
5  Using Arduino / Project Guidance / Re: arduino +100Mhz radio jammer on: February 23, 2013, 07:30:15 am
well first of all the only FCC law that can be found on jammers only specify cell phone, wifi, GPS and radio bands that company's or people own. On the wiki it states that the law is not enforced by the FCC, since no one has been charged with the crime.

On the other hand I just wanted to see how it was done and I had no malicious intent(believe it or not). I could have just asked how to turn the arduino into a FM transmitter as easily as asking how to make a jammer.
Anyways I figured it out so most of you just waisted your time bickering and talking none sense.
6  Using Arduino / Project Guidance / Re: arduino +100hz radio jammer on: February 22, 2013, 03:11:44 pm
I meant  around 100Mhz  or so.

where I'm from the federal laws say its illegal, but the state laws point to it being legal. Even laser jammers are legal where I'm from.

Isn't it funny how the state of California legalized a federally band substance? Then told the federal government that law dose not apply here. That's because the states tell the federal government what to do its always been like that and it has to stay like that. Unless you want to be a slave.

7  Using Arduino / Project Guidance / arduino +100Mhz radio jammer on: February 21, 2013, 08:21:06 am
Does anyone have some links or projects of jammers that are powered by an arduino?

NOTE: Before you come posting on this thread about it being illegal. I know the laws and where I'm from (USA) it is not illegal to use a jammer on your privet property as long as the jammer does not exceed your property line. Go look it up if you think I'm wrong!
8  Using Arduino / Programming Questions / Servo - convert writeMicroseconds to write angle on: February 19, 2013, 08:36:34 am
Does anyone know the math  to figure out how to get the servo write() angle out of the writeMicroseconds number?

Thank you in advance! ^^
9  Using Arduino / Programming Questions / Re: Boe-bot for arduino roaming with ping on servo turret on: February 13, 2013, 09:28:09 am
as an alternative I been working on this sketch so i at least have some thing to work with.

The only lesson I have learned from this bot is to beware of what shield you buy for arduino. Unfortunately I do not own the boe-bot to return it and was helping a friend understand how it works and why it has this flaw.

Maybe time will tell if parallax is trying  to just make a buck or rely wants to support the products they sell.

I hope this code helps others.
Code:
/*
 Current Version: 2.0 (2/13/2013) Not tested
 BOE Shield code from "Robotics with the BOE Bot"
 Roaming With Whiskers source, modified to use a PING)))
 sensor on the PING))) servo bracket.
 Using code from the Ping))) example sketch.
 http://thoughtfix.com/blog/2012/3/25/arduino-boe-shield-ping-and-a-servo.html
 
 Ping view angles, 125 or maybe 115 degree's, 45 can be wrong too maybe 35 will work
                 centerDist
  leftDist2=125      90       45=rightDist2
              ^       ^       ^
               \      |      /
 leftDist=160 <---------------> 20=rightDist
 
 Flex - changes (2/13/2013) v2.0
 - added 45 degree turns
 - made the ping() function move the turret to the angle with delay then return the ping
 - Removed Look forward function since ping() does the work now
 - LookAround() has 2 new angles so 45 degree turns can be done and added the new ping method
 - Added 45 degree turn logic to loop() before the 90 degree turning logic so small turns can be done first
 - Fixed the code so it doesnt go forward if the safe distance is equal to the center distance.
 - Removed some variables that where not used
 - Removed microsecondsToInches() function and moved the math in ping.
 - Removed forward(),turnLeft(),turnRight() and backward() functions
 - Added function move_or_turn(time, task) this will do all the movement.
 - Added LengthConversion variable with notes to set length to inches or centimeters
 - Changed logic so the code does not favor one direction then another and turns to the true max distance
 
 Flex: Found code, did some small changes and am starting the version number at v1.0
*/

// Servo calibration values, Not used, can be if needed.
const int max_LeftSpeed = 100;
const int max_RightSpeed = 200;

const int servoLeftPin = 13;                 // I/O Pin constants
const int servoRightPin = 12;
const int servoTurretPin = 11;
const int pingPin = 10;
const int piezoPin = 4;

const int LengthConversion = 74;             // Length: 74 = Inches or 29 = Centimeters
const int minSafeDist = 11;                  // Minimum safe distance of object

#include <Servo.h>                           // Include servo library
Servo servoLeft;                             // Declare left, right and Ping))) servos
Servo servoRight;
Servo PingServo;

// remember to look around after a 45 degree turn
int DoLook = 0;

// Define distance variables
int centerDist, leftDist, leftDist2, rightDist, rightDist2;
// Define variables for Ping)))
long duration, moveTime;                       

void setup() {                               // Built-in initialization block   
  tone(piezoPin, 3000, 1000);                // Play tone for 1 second
  delay(1000);                               // Delay to finish tone

  servoLeft.attach(servoLeftPin);            // Attach left signal to pin 13 
  servoRight.attach(servoRightPin);          // Attach right signal to pin 12
  PingServo.attach(servoTurretPin);          // Attach turret signal to pin 11


void loop() {
  if (DoLook == 0) {
    // Look Ahead get center distance
    centerDist = ping(90, 175);
  }
  else {
    DoLook = 0; // set for forward
    // Look around to see if last turn was enough
    LookAround();
    // set to 1 to skip moving forward so it can turn again
    // To-Do: test if this logic works
    if (rightDist2 < minSafeDist
      || centerDist < minSafeDist
      || leftDist2 < minSafeDist) DoLook = 1; 
  }
 
  /* If the inches in front of an object is greater than
   the minimum safe distance (11 inches), move forward */
  if(centerDist > minSafeDist && DoLook == 0) {
    move_or_turn(121, 1);
    delay(110); // Wait 0.11 seconds
  }
  else {
    // Stop moving
    servoLeft.writeMicroseconds(1500);
    servoRight.writeMicroseconds(1500);

    // Check your surroundings for best route
    if (DoLook == 0) LookAround(); // scan
    else DoLook = 0; // scan was done

    // Default move time
    moveTime = 250;

    // Check witch direction is the most so we dont faivor one direction then another
    if (rightDist > minSafeDist && rightDist > leftDist && rightDist2 > leftDist2) {
      // Right side has more distance
      if (rightDist2 > centerDist && rightDist2 > minSafeDist) {
        DoLook = 1; // remember to look around next loop
        moveTime = 125;
        move_or_turn(moveTime, 3); // do a 45 turn right
      }
      else {
        // do a 90 Turn Right 
        move_or_turn(250, 3);
      }
   // maybe need to put backward here also and ask a question for 90 degree turns   
    }
    else if (leftDist > minSafeDist && leftDist > rightDist && leftDist2 > rightDist2) {
      // Left side has more distance
      if (leftDist2 > centerDist && leftDist2 > minSafeDist) {     
        DoLook = 1; // remember to look around next loop
        moveTime = 125;
        move_or_turn(moveTime, 2); // do a 45 turn left
      }
      else {
        // do a 90 Turn Right 
        move_or_turn(250, 3);
      }
    // maybe need to put backward here also and ask a question for 90 degree turns 
    }
    else {
      // Go Backward
      move_or_turn(250, 4);
    }

    delay(moveTime);
  }
}
/*
Ping function moves turret to angle, pings then
 converts time to length and returns the number
 
 Distance_in_length = ping(angle, delayMS);
 */
int ping(int angle, int delayMS) {
  PingServo.write(angle);      // move turret to angle
  delay(delayMS);              // wait time for turret

  pinMode(pingPin, OUTPUT);    // Set pin to OUTPUT
  digitalWrite(pingPin, LOW);  // Send a low pulse
  delayMicroseconds(2);        // wait for two microseconds
  digitalWrite(pingPin, HIGH); // Send a high pulse
  delayMicroseconds(5);        // wait for 5 micro seconds
  digitalWrite(pingPin, LOW);  // send a low pulse
  pinMode(pingPin,INPUT);      // switch the Pingpin to input
  //listen for echo with 25000 time out
  duration = pulseIn(pingPin, HIGH, 25000);   
  // converts time to a distance then return the length
  return duration / LengthConversion / 2;
}
/*
Look around at 5 angles
 */
void LookAround() {
  //get the two right distances
  rightDist = ping(20, 320);
  rightDist2 = ping(45, 275); // TO-DO: check if 35 is better then 45
  // get the two left distances
  leftDist2 = ping(125, 320); // TO-DO: check if 115 is better then 125
  leftDist = ping(160, 275);
  // move turret back to center
  centerDist = ping(90, 320);
}

/*
move and turn function
 time - Time to wait for movement to complete
 task - move or turn command number
Number   Task
 1    =  Forward
 2    =  Turn left
 3    =  Turn right
 4    =  Backwards
 */
void move_or_turn(int mttime, int mttask) {
  if (mttask == 1 || mttask == 3) servoLeft.writeMicroseconds(1700);
  else if (mttask == 2 || mttask == 4) servoLeft.writeMicroseconds(1300);

  if (mttask == 3 || mttask == 4) servoRight.writeMicroseconds(1700);
  else if (mttask == 1 || mttask == 2) servoRight.writeMicroseconds(1300);

  if (mttime <= 0) mttime = 1;
  delay(mttime);
}
10  Topics / Robotics / What good robot shield are out there for arduino? on: February 13, 2013, 08:49:41 am
What robot shield's for arduino do you use and why did you choose it?
11  Using Arduino / Programming Questions / Re: RPM Interrupt stopping Servo loop on: February 12, 2013, 05:48:26 pm
you may need to give the servo more time to finish its move. Try 100 delay or more depending on the distance the servo has to travel.
12  Using Arduino / Programming Questions / Re: Boe-bot for arduino roaming with ping on servo turret on: February 12, 2013, 01:50:17 pm
What value is in a byte (unsigned) when you try to store -1 in it?
What value is in an int (unsigned) when you try to store -1 in it?
What value is in a long (unsigned) when you try to store -1 in it?

Write a sketch to find out.

1) error: invalid combination of multiple type-specifiers
2) 65,535
3) 4,294,967,295

I maybe wrong on the exact number for three and two because I didnt have time to copy it. I sure didnt think it would return the highest number it can hold...

well seeing that makes truely think the boe-bot sketch is broke and its not a hardware issue.
13  Using Arduino / Programming Questions / Re: Boe-bot for arduino roaming with ping on servo turret on: February 12, 2013, 01:00:38 pm
Quote
It also made me wonder how delay() would handle a negative number or if it defaults to one or zero.
The argument to delay() is an unsigned long. You need to determine for yourself what -1 as an unsigned long looks like. It will mean a lot more to you if you figure that out that if we tell you.

A hint, though. No, it does not cause delay() to think that you meant 0 or 1, not be a long shot. (Or an unsigned long shot).

Either Im going blind or the banks should start storing everyone's negative debt in an unsigned long.
14  Using Arduino / Programming Questions / Re: Boe-bot for arduino roaming with ping on servo turret on: February 12, 2013, 12:48:37 pm
You need some rotation sensors so that you can compare the rotational speed of the wheels and adjust the speed of the motors accordingly.  There are even clever ways to do it with only one rotation sensor but it would be easy to do it with two.

Can you tell me what rotation sensors would be good enough, easy to get and and fairly cheap?
15  Using Arduino / Programming Questions / Re: Boe-bot for arduino roaming with ping on servo turret on: February 12, 2013, 12:37:56 pm
I see "detach" calls for the servos, but no re-attach.
Make sure you never call "maneuver" with -1 for the argument "msTime".

yes, that's one spot that made me wonder why a detach is ever needed and if that sketch uses that part of the function.

It also made me wonder how delay() would handle a negative number or if it defaults to one or zero.
Pages: [1] 2 3 4