Electronics > Beginners

Attiny85: no serial output?

<< < (3/6) > >>

sleemanj:
If I was better at marketing, everybody would know about my Arduino core (fork) which is especially tuned up for these very tiny tinys....

https://github.com/sleemanj/optiboot/blob/master/dists/README.md

with my core, Serial.print() should work out of the box, TX/RX pins as below



phennessey:
How do you edit the core?

Psi:

--- Quote from: phennessey on January 19, 2020, 05:25:03 am ---I did exactly this, but I’m not sure it’s working right. I’ll post photos of my setup so you can offer more feedback. I only want to read from the chip. I don’t need to send data to it.

--- End quote ---

Can you post your code?
The example Nominal Animal posted should work for you.

Some traps for young players.

- Tx and Rx connections can end up reversed because some manufactures label them correctly and others label them wrong.
- Baud rate maybe wrong due to clock speed being wrong. (or at least not what the code expects it to be)

sleemanj:

--- Quote from: phennessey on January 22, 2020, 12:58:10 am ---How do you edit the core?

--- End quote ---

Do you mean how to install a third party core?  In that case, File > Preferences, "Additional Boards Manager URLs", click the window icon on that line and paste the third party core's json url.  Close preferences, Tools > Board > Board Manager find the core you want, install.  Choose Board from Tools > Board after installing.

Do you mean after you have installed a third party core and you want to change it for some reason?  File > Preferences, look down at the bottom of the window where it says "More preferences can be edited...." click the location of preferences.txt and it should open up the folder containing that, inside there is a packages folder, open the packages folder and you can drill-down into the installed core files.   But, be aware that if you update the installed core, your changes would be nuked.

hsn93:

--- Quote from: phennessey on January 19, 2020, 02:14:00 am ---I never asked anyone here for instructions. I merely stated that i needed them. Tutorials are definitely right up my alley.

--- End quote ---

fabacademy has one simple code for bit banging
https://fabacademy.org/2019/docs/FabAcademy-Tutorials/week08_embedded_programming/attiny_c.html

there is source codes here:
http://academy.cba.mit.edu/classes/embedded_programming/index.html

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod