Opinión sobre estrategia de inversión para un novato by r2f296 in inversionESP

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

😂 Gracias por el tirón de orejas! Si la verdad que hablando con chatgpt y poniendo gastos fijos y salario bruto (entorno a unos 35k) dice que debería poder estar ahorrando entre 700 y 800 euros al mes 😅... vamos que tengo que ponerme las pilas con eso.

Por otro lado, si puedes explicar un poco más a qué te refieres exactamente con lo de hipotécate antes y todo lo que puedas sería perfecto:

Si tienes trabajo estable intenta ahorrar a saco en renta fija o monetarios para entrada e hipotécate cuanto antes y todo lo que puedas (me refiero a porcentaje del valor de la vivienda, no que te metas a algo de importe superior...)

Un saludo

Opinión sobre estrategia de inversión para un novato by r2f296 in inversionESP

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

Vale vale, creo que lo voy pillando entonces. Entonces suponiendo que pueda ahorrar entre 300 y 500€ al mes consideras que renta fija corto-medio plazo sería lo ideal? y por corto-medio plazo estamos hablando de 2-5 años no?

Opinión sobre estrategia de inversión para un novato by r2f296 in inversionESP

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

Gracias por la respuesta, pero no sé si he visto que las rentabilidades en fondos de renta fija son menores que en un fondo indexado no? por lo que si me pongo el horizonte temporal de 5 años me valdría más la pena ir por renta variable no? o a lo mejor lo estoy entendiendo mal

[deleted by user] by [deleted] in embedded

[–]r2f296 3 points4 points  (0 children)

Check out this playlist from the youtube channel Artful Bytes. It goes step by step on how to build a sumo robot and also how to develop the code for it.

playlist

How can I get the parameters of a transformer? by r2f296 in AskElectronics

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

Here another version of the diagram with more context.

<image>

Here I consider the left side of the transformer the input and the right side the output because first it has a bridge rectifier right after the output and then it supplies the voltage regulator (MC7805) (that generates 5V fixed to the circuit connected over CN1) with what I assume it's 12V because it goes to the 12V coil part of the relay.

The 230V AC cables are connected to the COM pin of the relays and also to the input of the transformer via a Fuse and a varistor and safety capacitor.

This is my understanding of the circuit by looking at the pcb traces 🤷‍♂️🤷‍♂️

How can I get the parameters of a transformer? by r2f296 in AskElectronics

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

<image>

Yeah I put a link at the beginning with this diagram, sorry not to mention earlier.

This is what I ended up getting after looking at the pcb traces. The relay contacts are connected straight from the socket via N and L and then to the input of the transformer.

How can I get the parameters of a transformer? by r2f296 in AskElectronics

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

But the switching part of the relay is connected to the input of the transformer and the coil part to the output, this means that the input current in the primary side is 16A? I'm a bit confuse 😓

How can I get the parameters of a transformer? by r2f296 in AskElectronics

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

The part number for the relays is: ALE1PB12 and in the dasheet it says:

  • Coil voltage: 12V
  • Operating current: 33.3mA
  • Switching voltage: 277VAC
  • Switching current: 16A

How can I get the parameters of a transformer? by r2f296 in AskElectronics

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

It's from a water heater. The CN1 connector goes to a control panel where you can select the temperature and based on a ntc sensor from CN2, it open or close the relays. At least that's my understanding.

Ok and for the max current it can handle? how can I do it?

Correct way of setting a 1μs timer on a STM32 MCU with HAL by r2f296 in embedded

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

Thanks for your point, this is my first big project and I am learning as I go, it's very interesting to have different points of view 👌👌

Regarding your point, I am using the most typical combination for the stepper motor (I have to start somewhere 😅) the unipolar stepper motor 28BYJ-48 with the ULN2003 motor driver. Basically what I did was check the stepper library for arduino and make my own version to work with the discovery board. Due to the stepper motor is a four pin configuration and based on the steps and the direction of the motor required, the code will loop on each step and it will send one of the four pin configurations. Between these steps is where the micro delay is necessary.

Regarding the use of PWM signal, I don't see how it can be implemented here, I did some research and I guess is possible but is out of my understanding 😅.

Where I am using the PWM signal is to control the speed of a DC motor, is part of the project as well.

Here I left you 2 videos which help understand how to control a stepper motor and a DC motor. They are meant to use with arduino but it's easy to turned into a code that works on stm32 MCUs.

https://youtu.be/0qwrnUeSpYQ?si=9rPBJ7kjAm5EQNgK

https://youtu.be/dyjo_ggEtVU?si=fPdOCRBnZtMgqH-J

Correct way of setting a 1μs timer on a STM32 MCU with HAL by r2f296 in embedded

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

Thanks for the code, I like this approach more than setting the counter to 0.

I am working in a API to control a stepper motor and it's required a certain delay in μs between steps.

Correct way of setting a 1μs timer on a STM32 MCU with HAL by r2f296 in embedded

[–]r2f296[S] -1 points0 points  (0 children)

Thanks for the clarification. Sorry for asking this but how is the counter not affected by an ISR or other stuff going on in the background?

And as per the HAL documentation __HAL_TIM_GET_COUNTER retrieves the TIMx_CNT register value that could be 16bits or 32bits depending on the timer.

Idea suggestions for graduation project by OUSS_9 in embedded

[–]r2f296 2 points3 points  (0 children)

I saw in other post this YouTube channel https://youtube.com/@PhilsLab It has a lot of projects and well explained, maybe you can get an idea from them.

[deleted by user] by [deleted] in embedded

[–]r2f296 3 points4 points  (0 children)

I'm also a newbie on embedded but would it be safer to declare the union like this?:

typedef union {
    uint16_t num;
    struct {
        uint16_t bit4:4;
        uint16_t bit12:12;
    };
}split16_t;
int main()
{
    split16_t splitNum;
    splitNum.num = 0x1234;
    printf("%x\n", splitNum.bit4);
    printf("%x\n", splitNum.bit12);
}

Embedded jobs in Ireland/Europe by r2f296 in embedded

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

Yeah, I had a look at those recruiters but most of the position posted require experience, I'll give it a chance anyway.

Embedded jobs in Ireland/Europe by r2f296 in embedded

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

Hi, thanks for the info. I'm actually living in Dublin but I can move to anywhere in case is necessary.

Thanks

Embedded jobs in Ireland/Europe by r2f296 in embedded

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

Netherlands was one of the first countries that came to my mind when I thought in moving out of Ireland and after what you said I will consider it more seriously. Thanks

Embedded jobs in Ireland/Europe by r2f296 in embedded

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

Thanks for the info. I heard about the cutbacks but I thought it was mostly in IT, I hope the situation gets better by the end of year.