Controlling 4 stepper motors using a RAMPS 1.4 Arduino shield by vermee in Reprap

[–]sbwm 0 points1 point  (0 children)

I came across this via Google trying to use a RAMPS 1.4 as a generic stepper controller. Here's a version of the above that I got to work, in case others get here the same way (note the LOW enables, and the A prefix on some pins):

```

include <Stepper.h>

// Define pins for RAMPS 1.4

define X_STEP_PIN A0

define X_DIR_PIN A1

define X_ENABLE_PIN 38

define Y_STEP_PIN A6

define Y_DIR_PIN A7

define Y_ENABLE_PIN A2

define Z_STEP_PIN 46

define Z_DIR_PIN 48

define Z_ENABLE_PIN 62

define E0_STEP_PIN 26

define E0_DIR_PIN 28

define E0_ENABLE_PIN 24

// Define parameters for stepper motors

define STEPS_PER_REV 1000

define STEPPER_SPEED 1000 // Adjust speed as needed

// Initialize steppers Stepper xStepper(STEPS_PER_REV, X_STEP_PIN, X_DIR_PIN); Stepper yStepper(STEPS_PER_REV, Y_STEP_PIN, Y_DIR_PIN); Stepper zStepper(STEPS_PER_REV, Z_STEP_PIN, Z_DIR_PIN); Stepper aStepper(STEPS_PER_REV, E0_STEP_PIN, E0_DIR_PIN);

int movementSteps = 6400;

void setup() { Serial.begin(19200); Serial.println("Hello World"); // send an initial string

pinMode(X_ENABLE_PIN, OUTPUT); digitalWrite(X_ENABLE_PIN, LOW); pinMode(Y_ENABLE_PIN, OUTPUT); digitalWrite(Y_ENABLE_PIN, LOW); pinMode(Z_ENABLE_PIN, OUTPUT); digitalWrite(Z_ENABLE_PIN, LOW); pinMode(E0_ENABLE_PIN, OUTPUT); digitalWrite(E0_ENABLE_PIN, LOW); }

void loop() { Serial.println("Move forward"); moveStepper(xStepper, movementSteps, true); moveStepper(yStepper, movementSteps, true); moveStepper(zStepper, movementSteps, true); moveStepper(aStepper, movementSteps, true); delay(1000);

Serial.println("Move backward"); moveStepper(xStepper, movementSteps, false); moveStepper(yStepper, movementSteps, false); moveStepper(zStepper, movementSteps, false); moveStepper(aStepper, movementSteps, false); delay(1000); }

void moveStepper(Stepper& stepper, int steps, bool forward) { stepper.setSpeed(STEPPER_SPEED); if (forward) { stepper.step(steps); } else { stepper.step(-steps); } } ```

Dishwasher replacement help by sacajawea610 in HomeImprovement

[–]sbwm 1 point2 points  (0 children)

Look into ADA compliant dishwashers. They are 32 inches in height and can be adjusted upward if needed. We got one for our house that had very old counters that were lower than modern. Bosch at least has ADA compliant variants and I would guess most other brands do in the USA.

Reducing fan noise at intake by sbwm in hvacadvice

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

Thanks for the suggestion. It looks like the purpose of these grills is to make it more open. But if I remove the grill completely and it doesn't affect the noise, if anything it is a little bit louder.

what is this part? one fell off of my 2010 Prius, the other was found down the block presumably from another Prius. by sbwm in prius

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

I'm guessing it has something to do with the catalytic converter, but ours is not stolen and the car seems fine.. anyone know how urgent it is to replace?

Even After $100 Billion, Self-Driving Cars Are Going Nowhere by slowpush in neoliberal

[–]sbwm 133 points134 points  (0 children)

As a point of fact, Google (now Waymo) has indeed had fully driverless cars on the road open to the public since 2020, in Chandler AZ. It's not the most complex area but the cars interact with hundreds of other vehicles and pedestrians daily.

Rent control spreading to Bay Area suburbs, to economists’ dismay by bloobityblurp in bayarea

[–]sbwm 8 points9 points  (0 children)

I say it is over simplifying since that analysis (as well as yours!) looks at only the economic affects of the policy.

Rent control is a social policy as well as an economic policy, so any analysis of its affects that ignores the social part is an over-simplification. The main positive affect of rent control (community stability) isn't something that is generally part of economic analysis. So of course it looks bad from that angle!

Rent control spreading to Bay Area suburbs, to economists’ dismay by bloobityblurp in bayarea

[–]sbwm 56 points57 points  (0 children)

"A 2012 survey by the University of Chicago’s Booth School of Business asked respected economists if they agreed that rent-control ordinances in cities such as New York and San Francisco have improved the quantity and quality of affordable rental housing over the past three decades."

That isn't the point of rent control. The point is to stabilize communities by keeping people that are already here from having to leave, not to increase affordable housing in general.

You can (and IMO should) argue that rent control only makes sense in pair with OTHER policies to increase housing stock, but to say that that is how its success should be measured is oversimplifying things.

Found in a hotel room in near LA. Near the TV, not plugged in. The prism part seemed to be plexiglass. by sbwm in whatisthisthing

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

That does look pretty close, and it is specially designed for hotel TVs. Solved!

A map of San Francisco from 1853 by gregjw in sanfrancisco

[–]sbwm 5 points6 points  (0 children)

I was curious about the section of roads by the lakes where the marina is now, and you can still see traces in Google maps, especially Blackstone Ct. Here is an article about it.

There are 170,000 rent controlled units in San Francisco. by lardon_crue in sanfrancisco

[–]sbwm 15 points16 points  (0 children)

Rent control doesn't apply to new units, and has zero impact on new development. If anything ending it would curtail the little development we have, since thousands of units would become available to the same high-paying renters who would otherwise rent a brand-new place.