-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electronics Schema #4
Comments
Hi @greghesp, I originally intended to upload a diagram/schematic after I got everything working smoothly, but I never got around to it! I doubt that I'll be able to upload a schematic the repo for a while, as I'm not in the same location as Smokey... but if you're interested in making your own, I'd be happy to help figure everything out. From the code, we can start to see where the different components are connected to the WeMos D1 mini:
As far as I can remember (I'm not able to open it and snap photos as previously mentioned), the thermocouples are all sharing a common connection to D6 (MISO) and D5 (CLK), then each of the thermocouples' CS pins are connected to a different pin on the WeMos. I think that the fanControlpin is wired directly to the PWM input lead of the fan, as the fan model I used could accept a range of voltages on this input so I didn't have to do anything fancy. Do you already have the components? |
I've got them similar components on order, just waiting for them to arrive. I've got a NodeMCU rather than a D1 mini, although that should make little difference, and I've ordered some MAX31865 amplifiers. Very similar setup from what I can tell though |
As long as it's a ESP8266 based board, you should be set. Just be aware
that the pin names may vary between the D1 mini and the board you use, so
you may need to make adjustments to the code to ensure the CLK, MOSI, etc.
pins are going to the correct pins on your board.
…On Tue, Dec 29, 2020, 13:40 Greg Hesp ***@***.***> wrote:
I've got them similar components on order, just waiting for them to arrive.
I've got a NodeMCU rather than a D1 mini, although that should make little
difference, and I've ordered some MAX31865 amplifiers. Very similar setup
from what I can tell though
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNC33O3HWDALV4FIW7IF23SXHL3NANCNFSM4VNDJ7XQ>
.
|
Im running a NodeMCU, but U cant even get the MAX31865 example code to upload. Seems when the max's are connected, it fails |
Hi again! So if I have understood correctly, you are using this model of ESP8266-based microcontroller: My build/code uses the WeMos D1 mini, which looks like this: Both boards should be able to run the code, with minor changes such as the names of the pins in the code. You should note that the name of the pin you need to use in the Arduino IDE is not always what you may expect, so look this up for your MCU. You may need to map out on paper the allocation of each pin to each component, as you may have conflicts (e.g. you run out of PWM capable GPIOs to run the blower fan if you use the wrong one of the two possible MOSI pins). I opened up my temperature controller to try and figure out how I have everything wired, but unfortunately I was quite generous with the hot glue, so I couldn't get any good pictures. What I CAN see, is that the MAX31865 share some common connections (SCK, MISO, MOSI) like is shown here: I would recommend that you first try connecting just one thermocouple and get the example code running with that, then try scaling up piece by piece. Hope this helps you to move forward! |
Sorted! I had to strip back your code and build it up from scratch selecting what I needed using the MAX31865 library, but I've managed to get the temperatures to read out from both probes now :) In your
Wouldn't it just be |
Glad to hear that you got it working! You can change the aforementioned line if you want; I think my intention was to smooth the values to avoid turning off everything prematurely due to one high reading. Sort of like a weighted average of the last few readings. |
Out of interest, how are you powering it and doing the 12v to 3v? I've got some buck converters from my 3d printer, but they seem a little big and excessive for this xD |
I believe I used a cheap (~$1) DC-DC step down voltage regulator, but I
think I stepped down 12v to 5v as my microcontroller could take that as
input. If you check what voltage and current your MAX modules need, you
might only need to use one converter to power the MCU and modules.
…On Sat, Jan 9, 2021, 18:10 Greg Hesp ***@***.***> wrote:
Out of interest, how are you powering it and doing the 12v to 3v? I've got
some buck converters from my 3d printer, but they seem a little big and
excessive for this xD
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNC33MZWC6DJXZOWKEMFELSZCEYDANCNFSM4VNDJ7XQ>
.
|
Seems the NodeMCU outputs 3v, so have bought a cheap 3v to 12v setup |
Long story short, I am afraid that taking the 3v output of your NodeMCU and
then converting it up to 12v isn't going to be enough to power your fan :(
You need to consider the load demands such as voltage (Volts) and current
(Amps) as well as the duty cycle needs of your components. A decently sized
blower fan @ 12v will need much more than 1A, and you'll be running it for
up to 15h at a time.
The NodeMCU has an onboard voltage regulator (usually an AMS1117) which
typically takes an input voltage of 5-12v and delivers ~1.5A @ 3.3v. If you
want to power a small peripheral module that can run on 3.3v and only uses
a couple hundred mA (1000mA = 1A), this onboard regulator is sufficient.
But if you need to run something bigger, like a decently sized blower fan @
12v, you'll need much more. We can use the formula below to see how much
current we'd get out from converting from 1.5A @ 3.3v to 12v (assuming our
step-up voltage regulator has an efficiency of 80%, which I just made up,
but just to illustrate my point):
P = U * I
Where P is power in Watts, U is voltage in Volts, and I is current in Amps
Our input is 3.3v @1.5A, and our output is 12v.
3.3v * 1.5A = 4.95 Watts
Since we said we'd lose 20% of the power in the step-up conversion, 4.95 *
0.8 = 3.96 Watts
3.96 Watts / 12v = 0.33A or 330mA
Many 12v fans draw 2-4A at their top speed, so we're nowhere close to being
able to power the fan at full blast using the step-up voltage converter. If
you can, I would power your whole project with a hefty ~4A @12v power
supply, then use a step-down DC-DC converter which can give you ≥1A @5v.
The specs of the onboard NodeMCU voltage regulator looks like it can only
take up to 10v, so you would risk frying it if you didn't step down the
voltage first. 1A @5v should be enough to power the NodeMCU, as well as the
MAX modules (which can run on 3-5v and draw under 50mA each if memory
serves). Double check for yourself before accidentally frying one though ;)
Hope this helps!
…On Sun, Jan 10, 2021, 15:49 Greg Hesp ***@***.***> wrote:
Seems the NodeMCU outputs 3v, so have bought a cheap 3v to 12v setup
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNC33KZADHJH7KXCEVADMLSZG5ANANCNFSM4VNDJ7XQ>
.
|
Makes sense, its a 12v 3a fan. Ideally I'd like to power this via USB from a power bank (Micro, Mini, USB C) but I cant seem to find anything to handle this |
Do you have a wiring diagram/ scheme for the electronics part?
The software side is simple for me to understand, but the hardware side I'm not so sure on
The text was updated successfully, but these errors were encountered: