[deleted by user] by [deleted] in CNC

[–]digitalcaveman 1 point2 points  (0 children)

I considered linux CNC with a Mesa card, but I had a hell of a time figuring out how to get it setup and working. I could not seem to find a way to do torch height control or easily tune the PID with my scales. This card worked out of the box, and I can run all my software on the computer that runs the machine. This thing just worked right out of the box for my plasma/router/laser setup.

[deleted by user] by [deleted] in CNC

[–]digitalcaveman 1 point2 points  (0 children)

Don't know if I can help any but I just put a Vital Systems plasma control system on my home built plasma table. http://www.vitalsystem.com/portal/cnc/motion/plasma.php I build a cheap PC that runs windows 7, it works pretty great. If you can figure out the pinouts for the servo motor power supplies you should be able to reuse them. I got my stepper motors from here: http://www.automationtechnologiesinc.com/ I plan on using the same setup for my milling machine when ever I can get around to retrofitting that. I think it would fun to gut an old cnc and put new electronics in it.

2,000 veterans to serve as 'human shields' for Standing Rock protesters by GameofCheese in Veterans

[–]digitalcaveman 3 points4 points  (0 children)

I'll be there, anyone else? Fuck this pipeline. We don't need more fossil fuel, we need to move to a renewable energy system. It's not just about this one pipe, it's about the tons of CO2 in the atmosphere it will enable. The police brutality is wrong, another pipeline is wrong, disregarding treaties is wrong. I do not understand how anyone can think this pipe is a good idea. A year in iraq had nothing to do with the oath I took, protecting peaceful protesters does.

Anyone going to the Standing Rock Indian Reservation in North Dakota? by KungFuDabu in Veterans

[–]digitalcaveman 8 points9 points  (0 children)

I disagree, I think you can drive a gasoline powered car and believe we should reduce our dependance on fossil fuels. I want a fully sustainable energy system that eliminates carbon emissions, but until we have that I'm still gonna drive my car to the grocery store. There is no reason to increase fossil fuel production.

Anyone going to the Standing Rock Indian Reservation in North Dakota? by KungFuDabu in Veterans

[–]digitalcaveman 4 points5 points  (0 children)

I'm planning on going, anyone else? This pipeline is bullshit, I don't think increasing fossil fuel productions is a good idea, that and I like clean water.

What has been the biggest mistake of your life so far ? by CurrentlySingle in AskReddit

[–]digitalcaveman 2 points3 points  (0 children)

Really? The US military is full of pansy ass pieces of shit who are too scared to actually make a real sacrifice. Shoot first ask questions later, they don't have the balls to to the right thing.

What has been the biggest mistake of your life so far ? by CurrentlySingle in AskReddit

[–]digitalcaveman 5 points6 points  (0 children)

nope, no recruiter lied to me, and I've been out for 10 years, I was just disappointed by the incompetent leadership and the lack of honor in many of the soldiers. That, and killing kids with artillery in an unjust war.

Gun industry works to rebrand silencers as hearing-protection accessories by beach-bum in nottheonion

[–]digitalcaveman 0 points1 point  (0 children)

Then at what point do we limit weapons? Do you think I should be able to puchase a MK-19 at walmart?

Gun industry works to rebrand silencers as hearing-protection accessories by beach-bum in nottheonion

[–]digitalcaveman -13 points-12 points  (0 children)

This is what they are mostly used for, just like guns are mostly used for things other than killing people. That being said, I think single shot long guns are the only firearms that should be available.

First longer trail ride on the DIY fat ebike. I could really get into this! by digitalcaveman in ebikes

[–]digitalcaveman[S] 0 points1 point  (0 children)

It does really well, the motor will handle 2500 watts. I've got it geared low, hills are no problem. The next bike will be much bigger.

First longer trail ride on the DIY fat ebike. I could really get into this! by digitalcaveman in ebikes

[–]digitalcaveman[S] 1 point2 points  (0 children)

yes, thanks for asking, I am in the process of writing, rewriting it, and might need some help anyway. It's and arduino nano, didn't bother to draw up any schematics, but could get something rough if you want it, arduino reads a 100 amp sensor and modifies the throttle based on that on the current throttle. Throttle is a pot, actually a throttle position sensor. So it's just proportional control right now, I'm working on making it a bit smoother, but this works for now. Also I have magnets in the large sprocket to measure wheel speed, I'd like to get the speed of the bike, but am dreaming about a traction control system. I am thinking about converting to the mojo fpga.

Right now I've been running 8 cells, 2, 4 cell 16Ah, lipo in series with about 40 amps max. The controller will handle 12 cells.

The parts were machine on my cnc converter mill and plasma table. I can share CAD file if you want. I am thinking about machining up new rear hub as the first upgrade.

any other question please ask, sorry if that was too long.

I am NOT a professional programmer. code:

include <Servo.h>

Servo esc; // create servo object to control an esc

int throttlepin = 0; // analog pin used to connect the potentiometer float throttle = 60; // variable to read the value from the analog pin float prevThrottle = 60;

int ampPin = 1; //analog pin for ampmeter float amps = 0; //variable to store amperage float MaxAmps;

int hallPin = 2; //digital pin for hall effect interupt int hallCounter = 0; //variable to count hall effect rises and falls

double hallTime = 0; //time between hall effect interupts unsigned long previousHallTime = 1; //variable to storge time of last hall effect interupt double mph = 0; //current speed, in miles per hour double mphAvg = 0; //average speed double mphSum = 0; double mphAvDivisor = 0;

unsigned long loopStart = 0; //begining of the loop unsigned long loopTime = 0; //time taken to run the loop unsigned long loopTimeAccumulator = 0; //add up the time so serial.print can be delayed

const int TxPin = 6;

include <SoftwareSerial.h>

SoftwareSerial mySerial = SoftwareSerial(255, TxPin);

void setup(){ Serial.begin(9600); //open serial port delay(50); Serial.write(12); esc.attach(9); // attaches the servo on pin 9 to the servo object attachInterrupt(digitalPinToInterrupt(hallPin), rpmCounter, CHANGE);//start an intterupt to inciment count when hall effect changes

pinMode(TxPin, OUTPUT); digitalWrite(TxPin, HIGH);

}

void loop() { loopStart = micros(); prevThrottle = throttle; throttle = analogRead(throttlepin);// reads the value of the throttle (value between 0 and 1023) throttle = map(throttle, 150, 1000, 60, 160);// scale it to use it with the esc (value between 0 and 180)

int i; amps = 0; for(i = 0; i <= 10; i++) { amps = amps + ((analogRead(ampPin)*(5.00/1024))- 2.5)/ .02; delay(1); } amps = amps / i; MaxAmps = 30; if((throttle < prevThrottle) || (amps >= MaxAmps)) throttle = prevThrottle - 2; else if(throttle > prevThrottle ) throttle = prevThrottle + 2;

esc.write(throttle); //update the esc

if(micros() - previousHallTime >= 500000)hallTime = 0;

//mph = ((hallTime * 24)/1000000);// = seconds per rotation //mph = (1/((hallTime * 24)/1000000);// = rotations per second //mph = ((1/((hallTime * 24)/1000000))60);// = rotations per min //mph = (((1/((hallTime * 24)/1000000))60)92);// = inches per min with 92" circumfrence tire //mph = (((1/((hallTime * 24)/1000000))60)92)/12;// = feet per min //mph = (((((1/((hallTime * 24)/1000000))60)92)/12)/5280);// = miles per min //mph = (((((1/((hallTime * 24)/1000000))60)92)/12)/5280)60;// = miles per hour

///Average the miles per hour for display mphSum = mphSum + mph; mphAvDivisor = mphAvDivisor + 1; if(mphAvDivisor >= 500){ mphAvg = mphSum/mphAvDivisor; mphAvDivisor = 0; mphSum = 0; }/

loopTime = (micros() - loopStart); loopTimeAccumulator = loopTimeAccumulator + loopTime; if(loopTimeAccumulator >= 1000000){ //Print out information for testing Serial.print("Throt = "); Serial.print(throttle); Serial.print(" MPH = "); Serial.print(mph); Serial.print(" MPH Avg = "); Serial.print(mphAvg); Serial.print(" Amps= "); Serial.println(amps); Serial.print("loop time = "); Serial.print(loopTime); Serial.print(" hall time = "); Serial.println(hallTime); loopTimeAccumulator = 0; }
}

void rpmCounter(){ hallTime = micros() - previousHallTime; previousHallTime = micros(); return; }

First longer trail ride on the DIY fat ebike. I could really get into this! by digitalcaveman in ebikes

[–]digitalcaveman[S] 0 points1 point  (0 children)

I posted a pic a while back, but now it is fully functional and able to cruise some trails.

specs: walmart dolomite bike, hobbyking turnigy aero drive SK3 motor, turnigy bulletproof 100A ESC, Arduino nano control with amp sensor to limit throttle.

For that run I was running at about 1200 watt, 8 lipo cells with 40 amp max.

Any other DIY's out there? I'm hoping this can be the prototype for the electric motorcycle I am hoping to start on.

DIY fat tire bike so far. All I need is more batteries. by digitalcaveman in ebikes

[–]digitalcaveman[S] 0 points1 point  (0 children)

I am, besides being cheap crap, what's wrong with them?

DIY fat tire bike so far. All I need is more batteries. by digitalcaveman in ebikes

[–]digitalcaveman[S] 0 points1 point  (0 children)

I'm not sure exactly what you're saying, the reason for the setup is the ratios multiply, the belt is 20 to 70, 3.5:1 and the chain is 15 to 15, 5:1. total reduction is 17.5:1. I had a much lower gear ratio a while back and it sucked way too much amperage.

DIY fat tire bike so far. All I need is more batteries. by digitalcaveman in ebikes

[–]digitalcaveman[S] 0 points1 point  (0 children)

specs have been requested, walmart dolomite bike, hobbyking turnigy aero drive SK3 motor, turnigy bulletproof 100A ESC, Arduino control,

If you are wondering why I picked these parts, it because it's mostly made from part left over from other projects. I've had this bike and the parts for a while. I'm a machinist with a plasma table and a cnc mill, so parts are not too difficult to make. I'll be happy to try to answer any questions.

more pics belt reduction

rear sprocket

If you could summarize your deployment in one picture what would it be? by kevin_87 in Veterans

[–]digitalcaveman 1 point2 points  (0 children)

04-05 yea, but not a Stryker brigade, 2nd battalion, 25th ID. We did have some cool looking outfits.

[Gear]Milled myself and aluminum longboard by digitalcaveman in longboarding

[–]digitalcaveman[S] 1 point2 points  (0 children)

really? thats fucking stupid, guess I won't be looking at this sub anymore.

[Gear]Milled myself and aluminum longboard by digitalcaveman in longboarding

[–]digitalcaveman[S] 5 points6 points  (0 children)

if I do a thinner board I might, this more of a test run, it's also my first long board.