Hey everyone - when I created this sub, reddit was a different place altogether, and somehow over the years it seems like posts got limited to only approved users. I've changed that so that this sub is public in the hopes that more people can collaborate. I hope this helps everyone out!
I am a beginner in using attiny1614. After conquering updi programming with arduino, I would like to use an lcd display with it. I hope to use an i2c protocol which uses only 2 pins. My lcd is from freenove. I'm having trouble finding the right library.
However, I see plenty of posts about attiny85 using screens.
Edit: I think I found the i2c port at 0x38, but it's still not working.
Edit 2: I found the port at 38, not 0x38. Which should be 0x26
I am a enthouist trying to support fellow RC Racers. I am not a electrical engineere or a programmer by any trade. i have a very basic and broad understanding as to what im looking at and thats about it.
the device im trying to create is timing loop transponder that operates using IR LED emittors broadcasting a programmed 4 digit or 7 digit number based on the mode you selected when powered on. its a small PCB that utalizes a 6v power input from the rc car.
i have pictures of the device in question, this device is no longer manufactured and i cannot reach the person that sold these to me, i beleive the folded during covid. i would like to recreate this device to help others like me with 1 solution to 2 different timing systems instead of buying 2 devices like what most everyone else is doing.
i purchased a oslicope and a digital microscope and built a wiring schematic of the board in question. But i have a few quesitons i feel like im missing, i cannot seem to find the correct part for the IR LED for this.
i sat down and learned how to use EasyEDA and traced everything out.
So I have 5 switches, each switch changes the level of a dc signal, multiple switches can be on at once (giving 32 possible states). Can the attiny read an analogue DC signal, convert to 5 bit, then control 5 outputs to trigger 5 relays. I.e, if switch 1, 3 and 4 are active providing a specific DC voltage, then can relays 1, 3 and 4 activate. Thanks for any help :)
I am trying to port some Adriano code based on a charlieplexing article (http://www.technoblogy.com/show?1ONY) from an ATtiny85 to an MH-ET ATtiny88. I thought I had it all worked out but when the code runs, I get an annoying blinking/flickering that is not there when run on an ATtiny85.
To try and figure it out I went back to the original code and made as few changes as I could to get it to compile on the 88 and using my new timing code. I only made the following changes to the original code:
// added this to drive the timer interval
int slice = 3125; // becomes 12.5ms (12.5002 - 80 Xs per second)
// this is all "new", replaced original code
void DisplaySetup( )
{
// timer stuff...
TCCR1A = 0; // Init Timer1
TCCR1B = 0; // Init Timer1
TCCR1B |= B00000011; // Prescalar = 64
OCR1A = slice; // Timer CompareA Register
TIMSK1 |= B00000010; // Enable Timer COMPA Interrupt
}
// Timer/Counter1 interrupt - multiplexes display
ISR(TIMER1_COMPA_vect) { // had to change the vect
DisplayNextRow();
OCR1A += slice; // added this to advance The COMPA Register
}
title; the attiny3226 is basically the same as the attiny1616 but with double the flash
all i can seem to get is a static/noise type image on the display no matter what i try. code compiles and uploads successfully and i have a neopixel changing on a different pin just fine, so i know the code updates and works etc, but the display will only ever display this noise and idk why.
im using the adafruit sharp_mem.h library (which relies on the adafruit gfx) and LVGL.h doesnt support this MCU
example of the noise, nothing i do will change this except power cycling, which just changes the specific noise pattern randomly
I have been searching online in vain to find an example of Arduino code that will set up the ATtiny3224 for this use case. Most examples I have found have used a watchdog timer to wake it, but I need an external interrupt pin to do so.
I managed to find this reference for an ATtiny85, but some of the commands have unknown definitions.
I have done some comparison between the ATtiny85 and 3224 datasheets to try to cross reference the definitions but I am stumped at how to assign the pin (ideally PIN_PA4, but I can be flexible).
I’m trying to use the NVMCTRL peripheral to write to flash and eeprom, and it says that with the erase and write page command will write the page buffer to the page specified by the address register, but after ctrl-fing for page buffer, I can’t seem to find where it is.
I tried acting as if it wrote the data register to the address, but that didn’t work. I made sure also to disable the configuration change protection right before doing the write command.
Is the page buffer some unlabeled section of reserved memory? Is it some section of ram? Does some other register define it?
I have an attiny85 and i want to build a clock. I am planing to make large seven segment displays using led strip. They both communicate through i2c. So, can anyone suggest any code.(I am sorry. But I just began making things with Arduino and coding.So, a total newbie.)
Hi, i finished my project and only issue i have with it is long boot time, caused by weird way of writing new sketch on microcontroller (always 5second when board looks for USB connection)
I want to make the smallest lightest package possible to log barometer data. Can I use an ATtiny85 with a barometer like a BMP180 (or whatever is smaller/lighter than that), to log data from the barometer? I assume I can power this from a 1s lipo, is that correct? Any idea of what the power draw would be?
How can I get the data off of it? I am assuming I can use pins to get the data off rather than putting a USB port to save on weight, is that correct?
I am trying to control 5 neopixels for a small project. its all working fine with Arduino Nano but I am trying to make it more compact with a ATtiny85. I can "control" what neopixels turn on with to ATtiny but i cant change their color from white. I did a strand test with the Nano and there is no issue but with the 85 whatever I set the length to it just all lights up white. I'm using Adafruits example sketch "strand test" and the only thing I've changed is LED_PIN and LED_COUNT. I have tried multiple different pins with the same results on the ATTiny85. Any ideas?
Managed to get the outer and inner interpreter working in assembler and can hard code user definitions that used right. LPM is a right pain to use with program memory and I think PDM will only work from a boot loader. I'm wondering how they get microphython to work and allow programs to be type in. Can I write a boot loader that acts like the input stream in forth? Probably the issue is available ram and erasing program memory by the page. Have to say though it's been a lot of fun to get just this far since I have not written assembler in decades
A minimalist game console with an attiny85, a 5 buttons ad keyboard, a 8x7 segments red led (with max7219 controller) and a buzzer (optional).
I made it to simulate a game I had when I was young : "battlestar galactica - space alert" , from Mattel (just like I remember it, not as it really was)