Banner with yellow background
Saturday, 19. April 2008
Bynase on the Tiny2313

I put a bynase receiver on my Tiny2313 on the WOSP display board. I found an old source code that didn't work. It took me several hours to figure out how to get the LED driver code working. Now I can display the ramp chip in binary. I can also just put a long wire 'antenna' on the input and watch the lights flash. This could be a reasonable electromagnetic field detector!

But no, it's going to be part of the world's dumbest calculator. I still need to build the keyboard section which will read a bank of 8 switches. The current numeric input goes via bynase to the main processor. The plus and minus switches connect directly to the main processor.

The keyboard won't be a real bynase system because it won't have the pull-up resistors disabled. I'll probably put a switch in that line and a socket where you can plug in real bynase networks (or long-wire antennas). So the system is a dumb calculator but a usable bynase display.

Cybords Rule

... Link


Thursday, 17. April 2008
Cybord PWM converter

I've built a cybord to PWM converter. It takes the bynase value on PI and converts it to a PWM signal on OC0A (Tiny13 pin 5). I hope to add the bynase-in code to my Tiny2313 display driver.

The current cyboard part runs at 1MHz on the Tiny13 chip. I'm driving it with the ramp generator I mentioned yesterday. I found that putting an LED on the PO line messed the signal up. Have to use a different pin (there are three more on Tiny13) for monitoring. Right now the PWM output is driving an LED, it goes from dim to bright, but when it goes dim again it sometimes goes dim in two steps instead of one. I suspect there may be a timing issue somewhere.

My PWM converter doesn't have PO at the moment. I should probably add it for completeness. I might try the Dice cybord and connect it to my PWM converter to see how that works.

... Link


Wednesday, 16. April 2008
When Cybords Attack

Cybords by Ward Cunningham.

I think I might use Bynase in my "World's Dumbest Calculator" project. I don't understand cybords, but I want to. I got the bynase2.inc file and built a simple cybord on a Tiny13 chip. I figured a ramp would be a good thing to have, so my first try was as follows:

main:
 inc byout
 rcall byop
 rcall bydle
 rjmp main

I put an LED and a current limiting resistor from PO to ground. Worked like a lead balloon (not at all).

Sat and thought awhile. Part of my problem is I don't understand how to debug these things. Perhaps I should download the pre-defined cybords and see if I can get them working.

After some thought I decided to slow my ramp down. I have a 256 count delay (decrement R17 until it underflows, then decrement byout). Not much better. So I changed it to decrement byout every fourth time through the loop. Now it goes from dim to bright slow enough to watch it. I put the voltmeter on PO and it was going from zero to about half a volt.

Took another look at the specification on c2.com. Bynase puts a high signal than waits hundreds of counts before repeating. I guess in a way I'm doing a very low-level PWM signal. So the LED lights up but not as much as I want. My next step is to add a second cybord chip that listens to signals on PI and translates the value to a real PWM signal. Have to figure out the settings for the timer to do PWM. Or I could just get the TV output ported to Tiny13. The ValueFilterMeter would help me see what is on the bynase circuit.

Eventually I plan to have a Tiny2313 read the 8-bit input switchbank and send the calculator status on two bynase signals. One for the input number and one for the accumulator. The Tiny2313 already on the display board will read the bynase signals and update the LED outputs.

... Link


Creative Commons License (by-nd)

Creative Commons License

Blog entries licensed under a Creative Commons License.

8171 days of detection
mod: 12/3/08, 5:42 AM

days of detection

... PMOG
... ideas
... brain hurts
... weblo

owner

Biography

Randall Bohn lives in Orem, Utah, USA. He works as a Software Quality Engineer. He is a big fan of the AVR line of microcontrollers. He has been in the computer industry since 1989. Randall is married and has three children.

rsbohn can be reached via gmail.com.


status
Youre not logged in ... Login
Amazon.com DVD Shop
menu
... home
... topics
... galleries

... Antville.org home
search

related


calendar
December 2024
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
293031
December
recent updates
Arduino Starter Kit
MAKE Blog How-to Tuesday posted a challenge: Optimize the sketch code for a pressure sensor bar graph. Here is my second attempt: int gate[] = {10, 20, 50, 100, 200, 32767}; void setup() {DDRB = 0b00111110;} void loop() { int dval = 0; int rval = analogRead(2); for (int x = 0; rval...
12/3/08, 5:42 AM
Measuring Supply Voltage
I'm running my latest handheld computer on solar power. It starts up when the sun rises and runs all day. I started wondering how I could measure the voltage coming in from the solar panel. I came up with a way to use a diode and a resistor and the...
7/29/08, 9:53 AM
Ten Pin ISP adapter
I've already built a six pin ISP adapter, but my Olmex cards use the ten pin ISP. I put a header on a scrap of perf board, added an LED for the heartbeat, and then connected the ten pin cable. Actually it is a fifteen pin cable, off a joystick...
7/16/08, 10:00 PM
Hello 5x7 Style
Wrote a new firmware for the 5x7 display. Now it scrolls out 'hello' over and over again. I'm running it on a solar panel, so it wakes up with the sun and runs all day long. When I built the LED matrix I put resistors on the five columns. I'm starting...
6/17/08, 12:48 PM
Provo, Utah
With a walkable downtown and access to two Universities, Provo Utah is a great location. I live next door in Orem. Kipplinger: Provo: Pristine Tech Mecca (Video) (Text)
6/2/08, 10:07 AM
Another release of AVRISP sketch
There is a new release of the AVRISP emulation sketch for Arduino: avrisp.02.zip. This one should work with Mega8 and Mega168. mega-isp
5/28/08, 4:48 PM
Sorting Out Page Sizes
There is a new release of AVRISP Emulation for Arduino. This is an Arduino firmware that allows you to program other AVR microcontrollers. The new zip file (avrisp.01.zip) should compile on the current Arduino IDE, and I changed the comments that put the wrong labels on the SPI pins. Go ahead...
5/27/08, 11:31 AM
Flash Problems
I'm building a project using the AVR ATMega8 microcontroller. Once I got the thing wired up to where I could write firmware to it I found that it was always failing. I made a .hex file full of 0x10 values (256 bytes worth) and tried uploading that to the chip....
5/16/08, 2:56 PM
William's Arduino Board
I'm building an Arduino-compatible board for William. I'm building it on the Evil Mad Scientist MegaXX8 business card. It will have four built-in LEDs and a USB interface. It will also have connectors so he can use it with a breadboard. Perhaps we can connect it to some of his...
5/15/08, 7:26 AM
Cybord Signal Detector
Some digital radio signals use Frequency Shift Keying (FSK). This often has one frequency for a Mark and one for a Space. I plan to build a cybord or other chip that will decode an FSK signal, producing three different values: NO_SIGNAL, MARK, and SPACE. The signals would then go...
5/15/08, 7:20 AM

destinations

Listen to IT Conversations



Made with Antville

Quantum Touch

RSS Feed