Category: Uncategorized
-
Trying to understand irrational numbers in a rational way
Most of us like playing Jenga. For a moment, imagine that you are in a room with infinitely many identical Jenga blocks. At some point, you started wondering a Jenga block’s length-to-width ratio. Let’s forget about depth. But you have no access to any measurement tool. However, you easily figure out how to find it…
-
Running LeNet-5 convolutional neural network on RISC-V micro-controller with 16 KBytes memory
https://arxiv.org/pdf/2007.01348.pdf
-
Simple CPU in Xilinx Spartan 3E FPGA based Digilent Basys2 board
This simple CPU is running on Digilent Basys2 with basic instructions. It is Von Neumann architecture. Each instruction is 32 bit. ALU(Arithmetic Logic Unit) is capable of 32 bit if operands are loaded from memory. Otherwise direct operations only support 14 bit. GitHub (https://github.com/hasanunlu/simple_cpu) has all necessary files (Design files, binary download, memory dump and example bubble…
-
Full Speed Bit-Bang I2C demo for Risc-V architecture HiFive-1 board
HiFive-1 is first Arduino compatible Risc-V board. Unfortunately HiFive-1 only has PMW, UART and SPI hardware. Over the weekend, I implemented bit-bang I2C clocking up to 400KHz for my HiFive-1 board. Demo uses MPU6050 sensor read all axises and prints g in axis Z. The code is here: https://github.com/hasanunlu/i2c_demo_for_HiFive1 Next step, I will migrate my…
-
Basic 3D Engine in Arduino
This example is basic 3D computer graphics rotation and showing them after 2D projected in graphic LCD. Frame performance is 45fps but display refresh rate way slower than actual data throughput. Arduino codes: https://github.com/hasanunlu/3D_engine
-
Speed of Light Measurement using Texas Instrument TDC7201 (Basic LIDAR concept)
In this experiment, we measure light delay in 15 meters fiber cable using TDC7201 Time to digital converter. I used common parts you can find any where easily. All fiber cables in here are Toslink optical cable and very cheap. My measurement is 99.2[ns] in 15 meters cable. If it is in vacuum environment, light…
-
Intermediate Axis Theorem
One of the interesting physics phenomena is intermediate axis theorem, if a rigid object has increasing moment of inertia for each orthogonal axis and you spin it axis of intermediate moment of inertia, it oscillates back and forth in that axis. Here is the video: The analysis of system using rigid body equations: In that…