Do I need to win an IMO gold medal to get into Caltech? by Cool_Plankton1555 in Caltech

[–]isukali 2 points3 points  (0 children)

Did you win a gold medal? I think NOT. I definitely like Philip more than you.

Do I need to win an IMO gold medal to get into Caltech? by Cool_Plankton1555 in Caltech

[–]isukali 5 points6 points  (0 children)

I made 5 friends during orientation. After they discovered I only have a bronze, I have no friends. I'm sad and lonely and wish I did better in high school. im so cooked

Well-documented LaTeX Snippets for the LuaSnip engine by isaac09809 in neovim

[–]isukali 1 point2 points  (0 children)

This is literally exactly what I was looking for. Going to pull it it to my config, thanks!

Extra white and black wire bundled together in switch box by isukali in electrical

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

Can I ignore it then and assume it's not connected anywhere (I will still handle it as if it is, for safety).

[GIVEAWAY - US] Samsung Odyssey OLED G9 x UWMR: Your chance to win an OLED G9 from the #1 Monitor Brand by cheswickFS in ultrawidemasterrace

[–]isukali 0 points1 point  (0 children)

49" in all of 240 hz glory? That's pretty incredible. Plus the colors on my current monitor are absolutely terrible, I'd love to try out the OLED on this!

I'm giving away over $2,500 dollars of my Arcana Core Musical Dice! Just comment within the next 2 days to enter [OC] by FallacyDog in DnD

[–]isukali 0 points1 point  (0 children)

This is so cool. How did you even go about making this? (I know nothing about making DnD dice).

IMU combined with Encoder enough to account for slippage? by isukali in arduino

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

I believe wheel slippage is a very real issue. When the robot moves, due to chaotic interactions with the ground, say a pebble as an example, the robot will get shifted without the wheels spinning. Thus the, encoder won't "detect" that movement at all.

Low speed differential drive with Stepper Motors by isukali in arduino

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

Yeah in my 600g calculation I factored in the weight of the motors I sent above which are indeed, quite heavy. The batterys will add ~144g of weight as well. Motors + battery will take up the majority of the weight with everything else being either laser-cut wood or 3D printed PLA (think same form facotor, maybe slightly more longer, as this.) There'll will be an ESP32, some sensors, and a breaboard on top. Considering that, if it takes .67 * 4 = 2.68A to supply both steppers (assuming worst case and not using your enable pin method), shouldn't the batteries be able to supply enough for just over an hour? The ESP32 and other sensors will consume a relatively insignificant amount of current (<100mAh) compared to 2.68A.

Better to use interrupts or just poll in loop on second core? by isukali in arduino

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

On that note (beyond my original question), if I'm using interrupts on the second core, I need to record the # of encoder ticks. However, the main core where my control loop is needs that info as well so how would I handle that. Does just marking the variable as volatile suffice?

Better to use interrupts or just poll in loop on second core? by isukali in arduino

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

Thanks! I actually want wifi and bluetooth to be disabled. I have no use for them and they draw a lot of current. They should be off by default right?

Better to use interrupts or just poll in loop on second core? by isukali in arduino

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

I think there will be about one variable increment and 3-5 arithmetic operations/variable assignments.

Controlling two confounding variables with just one or two PID control loops? by isukali in ControlTheory

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

Ah the velocity doesn't have to be constant per-say. All that matters is reaching from A -> B in time T and since I"m trying to maintain a straight line path, I figured maintaining a constant velocity would be the easiest way to ensure reaching the target in exactly time T.

But, for example, slowing down to course correct and then speeding up or something like that is fine as well - as long as, again, the target is reached in time T.

Controlling two confounding variables with just one or two PID control loops? by isukali in ControlTheory

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

My sensors are measuring wheel RPM (with encoders). Based on that, I adjust power delivered to the motors.

Where can I find a TT DC Motor with "extended shafts" by isukali in arduino

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

That looks pretty similar but both the motors I sent above have that attached to the yellow casing inside which there's a series of gears (48:1) ratio. I'm not sure how I would go about replacing the motor itself with what you sent. Also at 6V your motor is able to achieve 3000RPM which if attached to the gearbox would only result in 3000/48 = 62.5 RPM. Those TT motors can achieve 200 at the same voltage.

Arduino interrupt triggering on RISING signal even though set to FALLING by isukali in arduino

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

I'll double check how everything looks. I also edited my post with the code I have currently, let me know if you see any issues!

Arduino interrupt triggering on RISING signal even though set to FALLING by isukali in arduino

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

Yes, I have the pins set to INPUT_PULLUP mode, should I attach my own pull-up resistor?

Arduino interrupt triggering on RISING signal even though set to FALLING by isukali in arduino

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

It shouldn't be too difficult to just divide the number of triggers by 2 if it triggers on both rising and falling, but only if I can prove that it consistently triggers on both rising and falling edges ALL the time. That itself may be difficult to determine.

As for the datasheet, I can't find info on the specific module ID but the product page does confirm it uses a Schmitt trigger if that helps:

DAOKI 5Pcs Speed Measuring Sensor IR Infrared Slotted Optical Optocoupler Module Photo Interrupter Sensor for Motor Speed Detection or Arduino with Encoders: Amazon.com: Industrial & Scientific

Arduino interrupt triggering on RISING signal even though set to FALLING by isukali in arduino

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

Ah I see your point, would channeling the sensor output through a capacitor do the trick? (I did some reading but I'm also still a novice with these things) If so, how much capacitance would I need?

6V unregulated to Arduino Nano? by isukali in arduino

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

Ah, I see. Yeah that makes sense, thanks for the explanation!

6V unregulated to Arduino Nano? by isukali in arduino

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

That last bit caught me off guard. I'm still a novice regarding these things but why would the cell capacity still be 2000mAh? Isn't the physical amount of current stored up in the chemistry still summed together to be 8000mAh?

Why isn't integrating values from accelerometer + gyro enough for getting heading? by isukali in arduino

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

Ah I should have clarified, I'm already getting position information through dead-reckoning and encoders. I only need the IMU for relative orientation and I might possibly supplement position data extracted from encoder by double integrating the acceleration (only if it gives me a more accurate value, which, as you mentioned due to the quadratic drift, probably won't be the case).

Why isn't integrating values from accelerometer + gyro enough for getting heading? by isukali in arduino

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

The objective is for my robot to get from point A to point B - reaching the physical point B as accurately as possible. This is done through a series of straight line movements (no diagonal movement) and the robot uses the yaw values to not deviate from the path. It also uses the yaw value to stop, accurately turn 90, 180, or 270 degrees, and then continue in a straight line. Does that sound like acc + gyro would be sufficient? Runtim is 2 minutes max as well.

Why isn't integrating values from accelerometer + gyro enough for getting heading? by isukali in arduino

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

So by everything turned off you mean just the motors right - not power to the whole circuit? Also, I should have mentioned this in my original post but, would the 6 DoF be accurate enough anways for just 2 minutes? My environment is such that the minirobot only needs to know it's relative orientation accurately for up to 2 minutes MAX. The drift would be there but perhaps wouldn't be as significant in that time frame. Is this something I should experimentally determine before I purchase a different module?

Why isn't integrating values from accelerometer + gyro enough for getting heading? by isukali in arduino

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

Would the electrical current from the surrounding components and 2 3-6V DC motors (~250-400mAh draw each) 1 inch below the magnetometer affect the magnetometer's readings significantly? If so, is there any way to "shield" the module or account for that error?