Author name: Scott

I make robots and exoskeletons work on classic cars, write software and books.

Data & Dieting – Calories In (2 of 3)

Calories In is a really interesting problem, you would think it just comes down to measuring how much food is taken in but when you calculate fiber, mis-measurement, and or use a misleading app, trying to calculate that 500 calorie per day deficit for that 1 pound per week weight loss becomes very hard, or even impossible.

Actual Burned Calories

The amount of food you eat that gets converted to useful energy, and is apart of the metabolic process of converting glucose to CO2, Water and ATP (Energy) or converting fatty acids to CO2, Water and ATP. You can see the chemical equation for glucose below:

Glucose Formula C6 H12 O6 + 6O2 →6CO2 +6H2O+ATP (energy)

The interesting part is the human body is only about 25-30% efficient in doing this conversion, the rest is lost to heat or other metabolic processes. Additionally based on what you eat, when you eat, wether you are dehydrated or well hydrated this number can fluctuate. This is really important as sometimes the less you eat, the more efficient you get at converting this energy and the less heat you produce. Think about it, if our ancestors were not able to get more efficient, humans wouldn’t have survived when there were food shortages or the hunts didn’t go as expected.

Accuracy of food measurements

How many of you use a scale to measure the amount of food you are consuming? How many of you just use the serving size count on the box? While the serving size is fairly accurate, unless you’re measuring this to the gram it’s very hard to measure. Additionally if you use a recipe combining all the ingredients the amount of oil, and understanding the exact portions makes it very difficult. Bottom line it’s easy to go 10% over here 10% over there, before you know it that 500 calorie deficit is actually just 100 or even over your daily caloric maintenance goal.

The App Illusion

While Apps do provide accurate measures in some cases, some entries are crowd sourced. Take for example type “chicken breast” into your favorite calorie app or book. In a very popular app I received 10+ results. Was this fried, raw, baked, measured by “medium or half of a breast” or ounces or grams? Was it natural or full of saline? The measurements of raw skinless boneless chicken breast by the USDA per 100g is: Protein 23g, Fat 1g, Carbs, 0g, Total calories 107. The measure for cooked chicken breast by the USDA 100g is: 31g of protein, 3.5g of fat, 0g of carbs for 165 calories total. This is a difference of 54%. If you’re trying to count calories and measure the wrong thing there’s a high chance of error, also, who eats 100g of chicken breast in the US?

In conclusion there’s a lot that go wrong even with technology and dedication.

Data & Dieting – Calories Out (1 of 3)

Taking a short break from technology and building things to talk about fitness and weight loss. I’ll present a 3 part series of posts to talk about what I’ve learned over the past few years.

RMR Oxygen and CO2

There’s been a lot of books I’ve read over the years about losing weight and getting fitter. Low Carbs. No Meat. 10,000 Steps. Count Calories. But it wasn’t until I went to have my Resting Metabolic Rate (RMR) measured that I truly woke up to the real science of metabolism and weight loss.

A metabolic cart does something real simple, it measures Oxygen (O2) In and Carbon Dioxide (CO2) Out. It does this for about 20 minutes and then it inputs the results into the Weir Equation and calculates your calories per minute. See Below:

Weir Equation is EE (kcal/min) = (3.941 x VO2) + 1.106 X VCO2)

To substitute my measured numbers (3.941 x .354L/min + 1.106 x .292 L/min) ~= 1.718 * 1440 = 2474 calories / day

Fascinating. Metabolism is really just about how much O2 you breathe in and how much CO2 you breathe out. But while I found this super helpful, what about all the folks that say steps per day or you must do cardio? Well this is a little more complicated but it still all comes back to Oxygen.

METs or Metabolically Equivalent Task

A MET or Metabolically Equivalent Task. This is defined as 3.5 milliliters of oxygen per kg of body weight per minute. Now this will vary per person and some people will burn more oxygen per minute some will burn less based on fitness level. Here are some sample MET values below.

ActivityMETs
Walking 3mph, 10 minute mile3.5
Running 6mph, 10minute mile9.8
Bicycling 10-12mph6.8
Swimming freestyle7.0
Weight Lifting3.0
Sample Activities / METs

So the equation for this is below:

Calories Burned = MET value x body weight in kg x duration in hours

Keeping Math Simple, walking 20min/mile pace yields, 3.5 Mets x 100 kg x 0.333 = 116.55 calories per 2000 steps.
Subtract your RMR from this number, so at rest a 100kg person burned 34.32 calories, for net gain of 82.335 calories per 2000 steps.

So the cardio crowd or the 10,000 steps crowd wasn’t wrong. A 100kg person will burn 82 more calories per 2000 steps walking than sitting on their butt. But if your fitness tracker or your treadmill typically has these numbers in the 150s or 200s per 20min it’s way off.

What’s Old Is New Again – App Store

I decided last night to renew my Apple Developer Account and decided to work on apps again. As a result my old App came back to the App Store. This app is the “Are You Worthy?” App, which is basically a Magic 8 Ball to test to see if you’re worthy of wielding Thor’s Hammer, Mjolnir. Nothing fancy just for fun.

Miscellaneous Robots & Videos

Here’s a few robots and videos from 2007 to 2009.

CRAB Robot Diagnostic

This is a small robot I hooked up to my PC and I added some TTS (Text-To-Speech). I think this is around 2007, so it’s pretty old footage. For anyone that recognizes it, this is the same J.A.R.V.I.S. voice I use for my house and during my CodeMash talks.

Same robot but doing some computer vision. I ended up using blue because of the low light and the cheap webcam tended to make everything green & red.

Feynman Series – Navigating The Sidewalk

Little bit more coding than I thought to make this work. This is a smaller version of the Feynman Series robot, the Feynman Jr. series. I ended up using some different motors as well, two NPC-2212 with 6″ wheels. Turns out it was a very rough ride, eventually the webcam servo mount broke because of the shock.

The Feynman (Robot) Years

This is a continued post about my robots as I prepare to archive and rebuild ScottsBots.Com.

Feynman MK1 – 2002

The “Feynman” name for my robots actually comes from the names of the computers in my house, this computer housed in wood below was called Feynman, and I happened to turn it into a robot.

This robot came equipped with a robot arm, sonar, a compass, and a webcam. The chassis was made from plywood and PVC. The motors were Black & Decker cordless drills. I powered the drills via speed controls from robot control cars. It had speakers and could “talk” using primitive text to speech. It was still powered via 110 VAC.

The computer itself was an AMD K6-2 500MHz, running Windows 2000 and Visual Basic 6. I programmed and tested it using VNC. I used a Basic Stamp 2 to get sensor readings from the sonar, compass and infrared sensors. I used the Scott Edwards Mini-SSC to control PWM channels on the speed controller connected to the drill motors.

Computer Vision Tinkering

From the image above, I also started to tinker with computer vision. This was a simple VB6 thresholding program, where i looped through all the pixels and if they were below a certain number I changed them to zero (black) and if they were above it, I changed the pixel to 255 (white).

Feynman MK3 – 2003

This version contained a lot of upgrades. I still had a plywood base but I used 80/20 Aluminum Extrusion for the chassis and I used 2 33AH Batteries for power. I upgraded the drive motors to use two windshield wiper motors from an F-150. I upgraded the speed controls to two Victor 883 from IFI Robotics @$150 each. I upgraded the webcams to Two Pyro 1394 Firewire webcams.

The computer changed to a lower powered version. VIA EPIA M10000 Mini-ITX with 259 MB of ram and a 20GB HDD. It had Wi-Fi and all the software to program and run it was 100% Java.

This is a picture of the base of the robot. The drive system used coupling nuts connected directly to the shaft of the wiper motors and the wheels. This wasn’t very efficient and the motors themselves didn’t prove to be that reliable. Another thing I didn’t do well with this design was account for the spacing of the caster wheels. They were a little above the drive wheel and movement of this robot was a little jarring as it would rock back and forth when starting and stopping. This rocking eventually led a really difficult time doing computer vision with the two cameras, ultimately i needed a better solution.

Feynman MK5 – 2004

This was the robot I used for my book, The Definitive Guide to Building Java Robots.

This design and software to run it is outlined completely in the book. Additional upgrades include PVC from McMaster Carr. Two new NPC-41250 Motors from National Power Chair. 3 SRF-4 Devantech Sonar Sensors. I also removed the front caster made it a little backwards heavy so it rested on the batteries. This created a much more stable platform for moving around doing navigation.

Feynman MK6 – 2005

Once I wrote the book I started getting invited to speak at local user groups and conferences about Java and Robots.

I created a switch so that I could remote control the robot as I would drive it places. This is the robot at some location in town, it could even be a conference. This robot is mostly the same as Feynman 5, just a little taller with a single webcam.

I think this was the first version of my robot I took to CodeMash. as speaker.

Feynman MK7 – 2006

This is the final version of the robot.

Most of this robot remains unchanged to this day. I removed and upgraded the computer a few times, eventually switching to a Raspberry Pi, but ultimately the robot proved too difficult to transport. It weighted about 200 pounds and required 2-3 people to load into the truck to transport to conferences and meet-ups. Currently this robot sits in the garage unused. 🙁

The Early Days of Scott’s Bots

I thought I’d put a post together summarizing some of my robots as I prepare to archive and rebuild ScottsBots.Com.

TetherBot – 1999

I built this robot in 1999. I hacked two hobby servers (Futaba 3003) to make it move and built my own sensors with some parts from Radio Shack. To move this robot I connected an ethernet cable to the parallel port on my Windows 98 Machine.

Baby Joe – 2001

This was my second and third robot. I reused the hacked servo motors from TetherBot, but this time I used a Basic Stamp microcontroller to control the IR sensors and send PWM signals to the servo motors. I also used Aluminum and plexiglass as construction materials.

Rovey – 2002

I started to experiment with different chassis materials (this time PVC). Also because I had more servos (pan/tilt) webcam and 2 drive servos (same ones) I upgraded the controller from a Basic Stamp 2 to a Scott Edwards Mini-SSC. This device allowed me to send commands to the servos with 3 bytes (255, servo(0-7), position (0-255). So (255,0,127) would send a stop/neutral pulse to servo connected to the 0 pin. (255,0,0) would send full clockwise pulse to the servo on pin 0. (255,0,255) would send a full counter clockwise pulse to the servo on pin 0. This is a great little board and one I use to this day on some of my new robots.

I created this robot for a talk at COSI. The idea was that students could login and control the robot from a web browser. The idea of the talk was to connect with Mars Pathfinder robot which at the time was discovering it’s way around Mars. The photo isn’t great I tried to create a Martian landscape and added rocks for the robot to explore. The robot was tethered so it could have continuous power, but to prevent the robot from getting tangled I connected the robot wires to a string hung from the ceiling.

MK3 Exoskeleton – MK1 Arm

The first part of the MK3 Exoskeleton the MK1 arm (forearm).

MK3 Exoskeleton – MK1 Arm (forearm)
  • 3D Editing Software – Fusion 360.
  • CNC – Shapeoko 3 w/HDZ.
  • Materials – PLA for Protptype 3D Parts. 1/4″ 6061 Aluminum Plate, 4-40 Stainless Screws w/Lock Nuts, 3d Printed Spacers

Next part the bicep and actuator.

No CodeMash 2022

In early December during the build of the Mark3 suit I had a catastrophic failure of my CNC Z-Axis limit switch. (See Below).

Because of this the machine was unable to home, and without being able to home, I couldn’t cut anything. I was unable to get it fixed with new parts until the week of Christmas and didn’t want to spend my entire holiday catching up trying to get it built.

I will post about the Mark 3 on my YouTube Channel “Almost Iron Man“.

Stay Tuned!

Scroll to Top