Published
Edited
Jul 15, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
basicVout = (basicR2 / (basicR1 + basicR2)) * basicVin
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
vOutMin = vd(r1max)
Insert cell
vOutMax = vd(r1min)
Insert cell
vd = function (x) {
return (r2 / (x + r2)) * vin;
}
Insert cell
analogRead = function (x) {
// Simulate something like the analogRead() function on an arduino
return Math.floor((x / vin) * 1023);
}
Insert cell
import { funplot } from "@mbostock/funplot"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more