Wellys Dev

  • Home
  • Search/Topics
  • Writings
  • About
  • 2021-05-23
    Which Forth?

    Where I discuss several versions of Forth and the attributes of each.

    Forth Versions

    There are many versions of Forth. This is due to a variety of reasons:

    1. Forth as a language is over 60 years old, hence there has been a significant amount of time for it to evolve.
    2. Forth tends to be processor-focused. Some people might argue this point, however, due to Forth’s ability to work well at a low-level, implementations tend to be aimed at a particular processor than other high-level languages.
    3. Forth is a relatively easy language to write and it is extensible, which means its not unusual for someone to “roll their own version”.

    To date, I have focused on two specific versions:

  • 2021-05-22
    ESPForth Part 2

    I discuss designating ESPForth as ArduinoForth, which is Forth words calling the Arduino framework.ESPForth is one of the easiest and least expensive ways to learn Forth, however it is based on the Arduino framework. This entry continues to explore how to use ESPForth calling Arduino routines on the Adafruit ESP32 HUZZAH32.

    Change of plans (again)

    This entry is pretty much deprecated for two reasons:

    1. There is a bug (or I don’t understand it) in CH Ting’s version of ESPForth in the word “constant”. Through several attempts over multiple months, I haven’t been able to have it consistently store a value. I looked at the C++ code and wasn’t able to determine the issue. Ultimately, this prevents one from writing a readable Hardware Abstraction Level (HAL), as much of an HAL are constant definitions.
    2. While attempting to solve #1, I ran across a new version of ESPForth, ESPForth 7.0.

    Change of plans

    For several days, I attempted to use the HUZZAH32 in its native mode, meaning I look at the registers such as GPIO_OUT_W1TS_REG and set specific pins to achieve what I need. I ran into significant issues, with some pins working well, while others had inconsistent results. It was this inconsistency that caused me to rethink how I approached this specific version of Forth, ESPForth.

  • 2021-05-16
    Analyzing Circuits Using the Espotek Labrador: Filters

    Where I explore filters in electronics and use the Espotek Labrador to demonstrate how to understand filters and create amplitude response curves. This discussion will be absurdly simplistic in comparison to the topic. My goal is to show sufficient theoretical examples of filters, so we can then test them using the Labrador.

    Video: How to Use the Espotek Labrador to Analyze a High Pass Filter Amplitude Response Curve

    Our goal with the Labrador is to test the following filter analysis. Doing so will help make electronics more intuitive and familiar and help you understand as to how to use the Labrador. It will also help you understand how to plot data and in this case, using a log scale.

  • 2021-05-11
    Julia Notes

    Notes on using Julia and Pluto.

    Additional Julia and Pluto information

    • Julia Documentation
    • Julia Cheat Sheet
    • MATLAB–Python–Julia cheatsheet — Cheatsheets by QuantEcon documentation
    • Plotting Docs
    • Julia Blogs
    • MIT Class Using Pluto
    • A Guide to Building Reactive Notebooks for Scientific Computing With Julia and Pluto.jl | by Connor Burns | The Startup | Dec, 2020 | Medium
    • An introduction to Pluto
    • Pluto.jl Documentaation
    • Reactive Data Analysis with Julia in Pluto Notebooks

    Tutorials

    • My New Workflow with Julia 1.0. A practical guide to how you can work… | by Erik Engheim | Medium
    • Julia’s Most Awesome Features. Five of my favorite features in the… | by Emmett Boudreau | Towards Data Science
    • Julia by Example
    • Think Julia
    • Julia Commands
    • Frontmatter | Julia Programming for Operations Research | Softcover.io
    • U Penn Julia
    • Data Science with Julia

    Using the Julia REPL

    When I started using Python, I didn’t use the Python REPL much. I took a more conventional approach to running Python as a scripting utility using executable files. When I started using Julia, I found the REPL much more valuable than Python’s. It might be the same, however, I’ve found myself using Julia via the REPL far more than as a scripting language. A couple of pointers:

  • 2021-04-03
    ESPForth

    ESPForth is one of the easiest and least expensive ways to learn Forth.

    esp32Forth Serial Monitor is a version of Forth written by CH Ting. Ting is remarkable in the volume of documentation he provides, as well as the number of versions of Forth he has created. In this article I want to highlight a version that I believe is interesting for two specific reasons:

    1. It runs on a Forth Virtual Machine (FVM) using the Arduino software framework
    2. It runs on ESP32 Arduino boards such as the NodeMCU ESP32, Adafruit ESP32 HUZZAH32 and the ESP32-DEVKIT. Most of these boards are $5-$15 with an amazing amount of processing power. When looking for a board for ESPForth, you want to ensure it is compatible with the Arduino IDE.

    FVM on the Arduino software

    Using the Arduino software provides a simple, yet powerful IDE for the user to implement Forth. It doesn’t require additional hardware so the user can immediately begin to use Forth. This also allows one to create Forth words calling Arduino framework software such as digitalRead, digitalWrite, and pinMode.

  • 2021-04-01
    Op Amp Resources

    Here are links to Operational Amplifier information, primarily for the design of simple, practical amplifiers.

    • What is an op amp?
    • How To Bias An Op-amp
    • Avoiding Op-Amp Instability Problems In Single-Supply Applications
    • Three op amp instrumentation amplifier circuit
    • Operational Amplifier Circuits
    • Basic Two Op Amp In-Amp Configuration
    • The Instrumentation Amplifier

    Tutorials

    • Introduction to Operational Amplifiers
  • 2021-03-31
    Analyzing Circuits Using the Espotek Labrador: Programmable Bias and Gain

    Using potentiometers for programmable bias and gain on the amplifier.

    A Typical Problem

    If you followed the last couple of experiments, AC Signal Analysis and DC Sweep, you know you have a functional amplifier that will take either a DC level or AC signal and amplify it -2.5x. How do you know this? You were able to test the amplifier using the Labrador’s built-in Signal Generator.

    This is nice, if that is the only signal you want to amplify. However, that isn’t the point of electronics! We want to explore and use our amplifier to amplify unknown signals! We want to put it to use!

  • 2021-03-29
    Analyzing Circuits Using the Espotek Labrador: AC Signal Analysis

    Using the Labrador to examine the amplifier’s AC signal response.

    Compared to the DC Sweep experiment, AC signal response is far easier to do.

    Before we dive into how to perform the analysis, let’s discuss why we made the decision to add a bias resistor. Let’s start with the same amplifier design, however, we’ll use two supplies:

    Inverting amplifier w/ dual supplies and no bias circuit

    From the time domain graph, you can see a few things:

  • 2021-03-29
    Analyzing Circuits Using the Espotek Labrador: DC Sweep

    Using the Labrador and a DMM, perform a DC sweep of an inverting amplifier. From our previous lab post we saw the simulation values for a DC Sweep. In this lab, we’ll use the Labrador along with a DMM to determine if our measured values match those of the simulation.

    Build the Circuit on a Breadboard

    1. Using this circuit, implement on a breadboard so it is similar to the image below.
      Inverting amplifier with bias diagram
    2. Parts List:
      • LM358 Operational Amplifier
      • Frequency Generator (Espotek Labrador or ADALM1000)
      • 9V power supply
      • 2k ohm resistor (or 10k potentiometer)
      • 5k ohm resistor (or 10k potentiometer)

    Notes:

    1. Vo is pin 1 on the chip
    2. Vn is pin 2 on the chip
    3. Vp is pin 3 on the chip
    4. Make sure you attach 9V to pin 8 and Ground to pin 4
      Inverting amplifier with bias breadboard

    Using a Potentiometer as a variable voltage source

    Notice the potentiometer on the right on the breadboard. There are three terminals:

  • 2021-03-27
    Designing an Inverting Amplifier with Bias

    I’ll use this amplifier to perform multiple tests using the Espotek Labrador.

    For more information on using operational amplifiers, I encourage you to look at these sources:

    • What is an op amp?
    • MAS.836 HOW TO BIAS AN OP-AMP
    • Avoiding Op-Amp Instability Problems In Single-Supply Applications

    Simple Operational Amplifier Discussion

    Simple op amp figure
    The operational amplifier (op amp) is defined by two rules:

Page 13 of 15
Copyright © 2025 Lief Koepsel
  • Home
  • Search/Topics
  • Writings
  • About