Gaming In Different Languages

One of the perks of using older hardware is its comparative simplicity and extensive documentation. After years or decades of users programming on a platform, the amount of knowledge available for it can become extensive. This is certainly the case with the 6502 microprocessor, used in old Apple computers and some video game systems from the ’80s. The extensive amount of resources available make it a prime candidate in exploring various programming languages, and their advantages and disadvantage.

This project looks into those differences using a robot game, which has been programmed four different ways in three languages. [Joey] created the game in Python first and then began to port it to the 65C02, a CMOS variant of the 6502. The first iteration is its assembly language, and then a second iteration with optimized assembly code. From there, he ports it to C and then finally to Forth. Each version of the game is available to play in a browser using an emulator to run the 6502 hardware.

Since the games run in the browser, other tools are available to examine the way the game runs in each language. Registers can be viewed in real time, as well as the values stored in the memory. It’s an interesting look at an old piece of hardware and of its inner workings. For an even deeper dive into the 6502, it’s possible to build a working computer on breadboards using one.

The Spin Cycle: Washing Machine Motor Converts 10-Speed To E-Bike

The “Spin Cycle” is an amazing electric bicycle built using a motor salvaged from a washing machine; when the puns are this perfect you have to roll with them. [jimminecraftguy’s] creation is one of the most hacked-together yet functional electric vehicle we’ve seen in a long time.

The drive train of this bicycle starts with a brushless DC motor from a washing machine. It has been slightly modified to run on 48 volts, and is installed inside the triangle of the bike’s frame. It has a chain driving the bike’s crank, retaining the original chain and gearing setup (unlike many electric bike hacks that utilize hub motors). The crank has also been specially modified to include a freewheel, a necessary feature so that the motor can operate without spinning the pedals. Everything except the motor has been custom fabricated including the mounts and the electronics.

[jimminecraftguy] reports speeds of 110 kph which is a little crazy for a 20-year-old aluminum frame bike, and we’d guess it’s not street legal in many jurisdictions, but we can’t really find much fault with this build in general based on the amount of innovation required to get this working at all. A few more improvements for the build are in the works, including improved batteries and a cover for the sides to keep the local law enforcement from getting too suspicious. We can’t wait to see the final version. Continue reading “The Spin Cycle: Washing Machine Motor Converts 10-Speed To E-Bike”

Live Map Of London Tube Created In PCB And Lights

If you’re a frequent traveler on a public transit system, it can be helpful to know when the trains or buses are arriving and if there are any delays. We might reach for a tablet to mount on the wall, but that relies on keeping the OS, the software, and its library dependancies up to date. For true reliability you’ll need to build directly in hardware, which is exactly what this map of the London tube system uses.

The base map is printed directly on PCB, with LEDs along each of the major routes to indicate the current location of the trains. A few small chips handle the WiFi connection — it appears to our eye to be an ESP8266 — and pulling the information about the trains from the London Underground API (it would be virtually impossible to build everything for this project in hardware). The hardware can be easily reprogrammed, and with the PCB layout this could be adapted for other public transit fairly easily.

Even apart from the philosophical differences on design between hardware and software approaches, we still appreciate the aesthetic of LEDs on PCB. In fact, we’ve seen a whole host of artwork on PCBs ever since the price came down dramatically in the past two decades.

Thanks to [Al] for the tip!

Quadcopter With Stereo Vision

Flying a quadcopter or other drone can be pretty exciting, especially when using the video signal to do the flying. It’s almost like a real-life video game or flight simulator in a way, except the aircraft is physically real. To bring this experience even closer to the reality of flying, [Kevin] implemented stereo vision on his quadcopter which also adds an impressive amount of functionality to his drone.

While he doesn’t use this particular setup for drone racing or virtual reality, there are some other interesting things that [Kevin] is able to do with it. The cameras, both ESP32 camera modules, can make use of their combined stereo vision capability to determine distances to objects. By leveraging cloud computing services from Amazon to offload some of the processing demands, the quadcopter is able to recognize faces and keep the drone flying at a fixed distance from that face without needing power-hungry computing onboard.

There are a lot of other abilities that this drone unlocks by offloading its resource-hungry tasks to the cloud. It can be flown by using a smartphone or tablet, and has its own web client where its user can observe the facial recognition being performed. Presumably it wouldn’t be too difficult to use this drone for other tasks where having stereoscopic vision is a requirement.

Thanks to [Ilya Mikhelson], a professor at Northwestern University, for this tip about a student’s project.

Chaotic Oscillator From Antique Logic

While working on recreating an “ancient” (read: 60-year-old) logic circuit type known as resistor-transistor logic, [Tim] stumbled across a circuit with an unexpected oscillation. The oscillation appeared to be random and had a wide range of frequency values. Not one to miss out on a serendipitous moment, he realized that the circuit he built could be used as a chaotic oscillator.

Chaotic systems can be used for, among other things, random number generation, so making sure that they do not repeat in a reliable way is a valuable property of a circuit. [Tim]’s design uses LEDs in series with the base of each of three transistors, with the output of each transistor feeding into the input of the next transistor in line, forming a ring. At certain voltages close to the switching voltages of the transistors, the behavior of the circuit changes unpredictably both in magnitude and frequency.

Building real-life systems that exhibit true randomness or chaotic behavior are surprisingly rare, and even things which seem random are often not random enough for certain applications. [Tim]’s design benefits from being relatively simple and inexpensive for how chaotic it behaves, and if you want to see his detailed analysis of the circuit be sure to visit his project’s page.

If you want to get your chaos the old fashioned way, with a Chua circuit, look out for counterfeit multipliers.

DIY Plastic Speedboat For One

Coroplast (short for corrugated plastic) is an interesting material. It has a structure similar to cardboard, but since it’s plastic it’s waterproof and can be used for a unique set of applications. It’s typically used for political yard signs, but there are more fun things to do with this lightweight material than advertise. [Paul Elkins], for example, uses it to make speedboats.

The boats that [Paul] builds make use of a piece of coroplast which he cuts and folds into a basic hull shape. From there he begins to assemble the other things needed to finalize the boat, including strengthening the shape with wood, adding a steering wheel, building a transom to mount the motor to, and placing controls in the cockpit such as throttle and steering. The entire build is enough to propel a single person on a body of water at about five knots, which is impressive.

To make one of these yourself you’ll need a small outboard motor, but all of the other details of the build are outlined clearly in his series of videos. If you want to build your own boat but don’t like the idea of a noisy two-stroke motor right behind you, you can also look into building a boat with a silent mode of propulsion.

And if you’ve got a good supply of Coro, definitely check out [Paul]’s other projects, including a tiny house.

Continue reading “DIY Plastic Speedboat For One”

Compile A Hydroponics System From Source

Tending to a garden is usually a rewarding endeavor, as long as there is good soil to work with. If there isn’t, it can either get frustrating quickly having to deal with soils like sand or hard clay, or it can get expensive by having to truck in compost each year. Alternatively, it’s possible to set up systems of growing plants that don’t need any soil at all, although this requires an automated system otherwise known as hydroponics to manage water and nutrients sent to the plants.

This setup by [Kyle] is unique in that it uses his own open-source software which he calls Mycodo to control the hydroponic system. It is loaded onto a Raspberry Pi 4 (which he notes can now be booted from a USB drive instead of an SD card) which controls all of the peripherals needed for making sure that the water has the correct amount of nutrients and chemical composition.

The build is much more than just a software control panel, though. [Kyle] walks through every part of setting up a small hydroponic system capable of effectively growing 15-20 plants indoors. He grows varieties of lettuce and basil, but this system can work for many more types of plants as well. With just slight variations, a similar system can not only grow plants like these, but fish as well.

Continue reading “Compile A Hydroponics System From Source”