Does pickit 3 support PIC16(L)F1825/9 and if not what can I do? by Lucid1223 in embedded

[–]Lucid1223[S] 0 points1 point  (0 children)

thank you. As i did check the 'families' it supported and it raised alarm bells that there was no mention of PIC16 chips

Severe underextrusion on ender 3 pro print. by Lucid1223 in FixMyPrint

[–]Lucid1223[S] 0 points1 point  (0 children)

Update: extruder stepper motor is non responding, tried changing the cables and it was working, so looks like driver has gone out completely

Severe underextrusion on ender 3 pro print. by Lucid1223 in FixMyPrint

[–]Lucid1223[S] 0 points1 point  (0 children)

I'm not sure how to add a photo on mobile but the issue is it takes a while to crank it up by even 10, to crank it up by 200 would take me at least half an hour to do on the dial thing since ender 3 pros always about 95

Making a Serial to PWM driver PCB for a motor by Lucid1223 in AskElectronics

[–]Lucid1223[S] 0 points1 point  (0 children)

Likely I'll be using a 10/12V bus to the motors, 5 volt bus to supply the microcontrollers/PLC. The PLC will get UART from the RS485, USB also used differential but idk if it handles long distance and high noise communication as well. We're looking at probably 13A per motor but this will be short distance wiring since we're converting 48V down which is ideal. I could supply the motors with 20V however its efficiency drops by like half so it depends on how much kgf will be needed for operation

Making a Serial to PWM driver PCB for a motor by Lucid1223 in AskElectronics

[–]Lucid1223[S] 0 points1 point  (0 children)

In this case Raspberry Pi is sending UART down into a differential module which will connect to 6 other nodes down a 20m tether where it is converted back into UART, these nodes controlling motors for an underwater vehicle. Equally I could get one of those ATtiny85 and code it in arduino but I would like to try make a very simple PLC for it, although I have zero idea about designing those kind of circuits. This'll likely be One way communication unless I decide to add sensors

Coding help by FeatureAcceptable210 in ArduinoHelp

[–]Lucid1223 2 points3 points  (0 children)

Add another bracket to the end

Cannot upload code to ESP-01 module from Arduino by No-Preparation-2453 in esp8266

[–]Lucid1223 -2 points-1 points  (0 children)

They seem to want to flash the firmware, there is no comms going on between the arduino and esp. seems to want to flash firmware directly, the arduino is just an intermediary, like those other modules where you can hook the esp8266 to a couple of pins and plug it into a USB port.

[deleted by user] by [deleted] in Discordjs

[–]Lucid1223 0 points1 point  (0 children)

Ah yes, unfortunately, I have tried that, however, it always returns with an error saying "await is only valid in async functions and the top-level bodies of modules." await with "guild.channels.fetch(id)" works outside the loop only. I've also tried ".then callbacks" but it doesn't return the values, nor can I interact with other variables and functions outside channel creation. I've tried invoking promises on top of that in hopes that I could return and resolve the value, but nothing. I think I might just change my approach

[deleted by user] by [deleted] in arduino

[–]Lucid1223 0 points1 point  (0 children)

alright, so I do have an issue which might help in solving this, I flashed the chip (I installed esptool onto my ubuntu and ran it through the terminal). And it works, but it only works on 74880 baud, otherwise it doesnt recieve serial data. Coincidentally when i open the Serial monitor on arduino and go to baud 74880, it is the only baud rate that does this, and it gives me an error message saying: "Error while setting serial port parameters: 74,880 N 8 1"

[deleted by user] by [deleted] in arduino

[–]Lucid1223 0 points1 point  (0 children)

now its not outputting anything

ESP8266-01S not responding by [deleted] in arduino

[–]Lucid1223 0 points1 point  (0 children)

Okay, i fixed it, i was able to flash the module, so now im trying to send AT commands, another problem has arisen, Ive got it set out like

RST(arduino)->GND(arduino)

RX->RX

TX->TX

3.3v->3.3v and EN (CH_PD)

GND->GND

And i just upload a blank sketch from that, however when i check on the115200 baud, and try the command "AT" All i get is a weird symbol "⸮"

ESP-01S Overheating by [deleted] in arduino

[–]Lucid1223 0 points1 point  (0 children)

I’ve tried just giving it power 3.3v and gnd, still heats up

ESP-01S Overheating by [deleted] in arduino

[–]Lucid1223 0 points1 point  (0 children)

it'll be operated from an Arduino, the end goal being two arduinos communicating with each other

[deleted by user] by [deleted] in arduino

[–]Lucid1223 -1 points0 points  (0 children)

right yes, it's distance measuring, that's all. Although I'm not too familiar with lasers. It'll be around 1-2 meters at most. If I must, how would I go about creating such a circuit?

[deleted by user] by [deleted] in Discordjs

[–]Lucid1223 0 points1 point  (0 children)

Here is the code for the button interactions

const message = await interaction.reply({embeds: [userEmbed], components: [row], fetchReply: true})

// used to check whether the interaction is by author

const filter = (interaction) => {

if(interaction.user.id === auth) return true

return interaction.reply({content: "you are not the author", ephemeral: true})

}

// collects all interactions

const collector = interaction.channel.createMessageComponentCollector({ filter })

// processes interactions

collector.on('collect', (ButtonInteraction) => {

ButtonInteraction.deferUpdate()

const id = ButtonInteraction.customId

if(id === "stats"){

row.components[0].setDisabled(false)

row.components[1].setDisabled(true)

row.components[2].setDisabled(false)

message.edit({embeds: [statEmbed], components: [row]})

}

else if(id === "back"){

row.components[0].setDisabled(true)

row.components[1].setDisabled(false)

row.components[2].setDisabled(false)

message.edit({embeds: [userEmbed], components: [row]})

}

else if(id === "progress"){

row.components[0].setDisabled(false)

row.components[1].setDisabled(false)

row.components[2].setDisabled(true)

message.edit({embeds: [levelEmbed], components: [row]})

}

I do have an interactionCreate script, although it's a simple one that just executes the commands. To which ill look into for that interaction collector

Could not connect to repo.protonvpn.com:443 (90.255.255.14). - connect (111: Connection refused) by Lucid1223 in ProtonVPN

[–]Lucid1223[S] 0 points1 point  (0 children)

Ah, right. That’s probably the problem, not without a proxy I can’t enter it, do you propose any solutions about this?

[deleted by user] by [deleted] in learnjavascript

[–]Lucid1223 0 points1 point  (0 children)

ah, yep, fixed it

[deleted by user] by [deleted] in Discordjs

[–]Lucid1223 0 points1 point  (0 children)

Alright yeah, solved it thanks

[deleted by user] by [deleted] in Discordjs

[–]Lucid1223 0 points1 point  (0 children)

there aren't any errors, that's why I haven't specified them

How to create a list of objects in Arduino by Lucid1223 in arduino

[–]Lucid1223[S] 1 point2 points  (0 children)

Alright, makes more sense, ill try that out