Yes, as I mentioned they can be purchased for not much more than the chip itself or you can buy something a little nicer.Doesn’t the ATTiny also need a programmer? Such as the one sold by Sparkfun?
Yes, as I mentioned they can be purchased for not much more than the chip itself or you can buy something a little nicer.Doesn’t the ATTiny also need a programmer? Such as the one sold by Sparkfun?
The programming effectively turns the ATTINY85 into a custom hardware solution and the programmer will never be needed again unless you want to make changes.I agree that it is very logical to expect to have better results with a small industrial quality chip than with a product of recreational quality.
As far as the price of the build, there will be multiple user interface control devices along with multiple speed controllers. Would it be necessary to use an Arduino or other solution for each 4 in 1 ESC, for each motor, or only one to program all of the chips
If the answer is that it's only one for all of the chips, is it plausible that an issue with the Arduino or other solution could cause an issue with all of the chips that it programs, and lead them all to fail at the same moment
In this build, it is acceptable for one or even a couple or perhaps a few of the chips to fail, but it would almost certainly cause a massive and catastrophic problem for someone if they fail all at once.
You have not explained what you are using this for, so it is difficult to make recommendations using the scraps of information you have given us.I agree that it is very logical to expect to have better results with a small industrial quality chip than with a product of recreational quality.
As far as the price of the build, there will be multiple user interface control devices along with multiple speed controllers. Would it be necessary to use an Arduino or other solution for each 4 in 1 ESC, for each motor, or only one to program all of the chips
If the answer is that it's only one for all of the chips, is it plausible that an issue with the Arduino or other solution could cause an issue with all of the chips that it programs, and lead them all to fail at the same moment
In this build, it is acceptable for one or even a couple or perhaps a few of the chips to fail, but it would almost certainly cause a massive and catastrophic problem for someone if they fail all at once.
Will that workIn that case, each setup would be wired to a motor pad on the 4-in-1 ESC
The ATTiny85 is the specific type of ATTiny chip.How do I start programming an ATTINY85 and is there a specific kind I should get
While you will ultimately want to use the ATTINY85 without a fancy bootloader on it, I think a really good way to get started, and even for prototyping, is to use a DigiSpark. They are cheap, simpler to start with, and they are based on the ATTINY85 so everything you learn, save a few steps, will transfer over.How do I start programming an ATTINY85 and is there a specific kind I should get
Thank youThe ATTiny85 has two pins with the PWM function built-in. In the Arduino programming language, a subset of C++, there is a command that uses these pins to generate a PWM signal with just one line of code. That approach is your best bet if your just learning to program.
My suggestion of learning from the Arduino tutorials can mostly be done with the Digispark development board instead of the Arduino Uno.
It's misleading. There are a huge number of third-party boards that are compatible. Arduino keeps a list of them here. The URL after the titles are the files that contain the information the IDE needs to install the support files for the board. They show up in the list of boards to select. Below is the Digistump section from the list. A note about the Digispark: you need a driver if you are using Windows but it gets installed during the IDE update; also, unlike most boards, you plug in the board to be programmed after the program has compiled. It prompts you and gives you 60 seconds to do it.In the Arduino online tutorial it says that it supports only official Arduino / Genuino boards and a few certified and at heart boards. How does the DigiSpark relate with that
Is there a way to edit the title of the thread
Think of the ATTINY as a little IC that you can design yourself. You get to choose what the pins do, and you get to choose how other pins change that. You are going to end up with pins that accept your potentiometer and pins that produce a PWM signal proportional to the value of the porentiometer.Thank you and to double check will it work to run each ATTINY85 to a single pad on the 4-in-1 ESCs
int pwmLevel = 0;
int fadeDelay = 5;
void setup() {
pinMode(1, OUTPUT);
}
void loop() {
for (pwmLevel = 0; pwmLevel < 256; pwmLevel++) {
analogWrite(1, pwmLevel);
delay(fadeDelay);
}
for (pwmLevel = 255; pwmLevel > -1; pwmLevel--) {
analogWrite(1, pwmLevel);
delay(fadeDelay);
}
}
//The Digispark has onboard LED connected to pin 1
//so we can use it to see the effect of the PWM by
//looping through the values and watching it "throb".
int pwmLevel = 0; // to store the current PWM value from the loop
int fadeDelay = 5; // a small delay (in ms) to enhance the effect
void setup() { // anything inside this loop is executed once at start up
pinMode(1, OUTPUT); // tell the ATTINY85 to make pin 1 work for output
}
void loop() { // anything inside this loop is executed for the life of the program
// Each of these loops assigns a value to pwmLevel, then checks to make sure it
// is either not too large (first loop), or too small (second loop)
// then it does the stuff inside the loop and repeats incementing or decrementing
// pwmLevel until the condition in the middle is met, and it bails out.
for (pwmLevel = 0; pwmLevel < 256; pwmLevel++) {
analogWrite(1, pwmLevel); //write a value to pin 1
delay(fadeDelay); //wait fadeDelay ms so we can see the effect
} // repeat until pwmLevel reaches 255
for (pwmLevel = 255; pwmLevel > -1; pwmLevel--) {
analogWrite(1, pwmLevel);
delay(fadeDelay);
}
} // repeat loop()
Select Edit Thread from the dropdown menu at the top, that will let you edit the title.Is there a way to edit the title of the thread